minikai 0.1.3__py3-none-any.whl → 0.1.5__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 minikai might be problematic. Click here for more details.
- minikai/models/__init__.py +0 -4
- minikai/models/create_record_command.py +11 -62
- minikai/models/mini_dto.py +3 -3
- minikai/models/mini_template_dto.py +3 -3
- minikai/models/record.py +46 -66
- minikai/models/record_dto.py +14 -65
- minikai/models/update_record_command.py +35 -72
- {minikai-0.1.3.dist-info → minikai-0.1.5.dist-info}/METADATA +1 -1
- {minikai-0.1.3.dist-info → minikai-0.1.5.dist-info}/RECORD +10 -12
- minikai/models/json_node.py +0 -144
- minikai/models/json_node_options.py +0 -61
- {minikai-0.1.3.dist-info → minikai-0.1.5.dist-info}/WHEEL +0 -0
minikai/models/__init__.py
CHANGED
|
@@ -14,8 +14,6 @@ from .form_field_type import FormFieldType
|
|
|
14
14
|
from .group_dto import GroupDto
|
|
15
15
|
from .http_validation_problem_details import HttpValidationProblemDetails
|
|
16
16
|
from .http_validation_problem_details_errors import HttpValidationProblemDetailsErrors
|
|
17
|
-
from .json_node import JsonNode
|
|
18
|
-
from .json_node_options import JsonNodeOptions
|
|
19
17
|
from .mini_dto import MiniDto
|
|
20
18
|
from .mini_template_dto import MiniTemplateDto
|
|
21
19
|
from .paginated_list_of_record_dto import PaginatedListOfRecordDto
|
|
@@ -61,8 +59,6 @@ __all__ = (
|
|
|
61
59
|
"GroupDto",
|
|
62
60
|
"HttpValidationProblemDetails",
|
|
63
61
|
"HttpValidationProblemDetailsErrors",
|
|
64
|
-
"JsonNode",
|
|
65
|
-
"JsonNodeOptions",
|
|
66
62
|
"MiniDto",
|
|
67
63
|
"MiniTemplateDto",
|
|
68
64
|
"PaginatedListOfRecordDto",
|
|
@@ -14,10 +14,9 @@ from typing import Union
|
|
|
14
14
|
import datetime
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
|
-
from ..models.record_relation_dto import RecordRelationDto
|
|
18
|
-
from ..models.json_node import JsonNode
|
|
19
17
|
from ..models.create_record_command_tags import CreateRecordCommandTags
|
|
20
18
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
19
|
+
from ..models.record_relation_dto import RecordRelationDto
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
|
|
@@ -35,8 +34,8 @@ class CreateRecordCommand:
|
|
|
35
34
|
description (Union[None, Unset, str]):
|
|
36
35
|
mini_id (Union[None, Unset, str]):
|
|
37
36
|
event_date (Union[None, Unset, datetime.datetime]):
|
|
38
|
-
schema (Union[
|
|
39
|
-
content (Union[
|
|
37
|
+
schema (Union[Unset, Any]):
|
|
38
|
+
content (Union[Unset, Any]):
|
|
40
39
|
relations (Union[Unset, list['RecordRelationDto']]):
|
|
41
40
|
external_uri (Union[None, Unset, str]):
|
|
42
41
|
labels (Union[Unset, list[str]]):
|
|
@@ -48,8 +47,8 @@ class CreateRecordCommand:
|
|
|
48
47
|
description: Union[None, Unset, str] = UNSET
|
|
49
48
|
mini_id: Union[None, Unset, str] = UNSET
|
|
50
49
|
event_date: Union[None, Unset, datetime.datetime] = UNSET
|
|
51
|
-
schema: Union[
|
|
52
|
-
content: Union[
|
|
50
|
+
schema: Union[Unset, Any] = UNSET
|
|
51
|
+
content: Union[Unset, Any] = UNSET
|
|
53
52
|
relations: Union[Unset, list['RecordRelationDto']] = UNSET
|
|
54
53
|
external_uri: Union[None, Unset, str] = UNSET
|
|
55
54
|
labels: Union[Unset, list[str]] = UNSET
|
|
@@ -61,10 +60,9 @@ class CreateRecordCommand:
|
|
|
61
60
|
|
|
62
61
|
|
|
63
62
|
def to_dict(self) -> dict[str, Any]:
|
|
64
|
-
from ..models.record_relation_dto import RecordRelationDto
|
|
65
|
-
from ..models.json_node import JsonNode
|
|
66
63
|
from ..models.create_record_command_tags import CreateRecordCommandTags
|
|
67
64
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
65
|
+
from ..models.record_relation_dto import RecordRelationDto
|
|
68
66
|
title = self.title
|
|
69
67
|
|
|
70
68
|
description: Union[None, Unset, str]
|
|
@@ -87,21 +85,9 @@ class CreateRecordCommand:
|
|
|
87
85
|
else:
|
|
88
86
|
event_date = self.event_date
|
|
89
87
|
|
|
90
|
-
schema
|
|
91
|
-
if isinstance(self.schema, Unset):
|
|
92
|
-
schema = UNSET
|
|
93
|
-
elif isinstance(self.schema, JsonNode):
|
|
94
|
-
schema = self.schema.to_dict()
|
|
95
|
-
else:
|
|
96
|
-
schema = self.schema
|
|
88
|
+
schema = self.schema
|
|
97
89
|
|
|
98
|
-
content
|
|
99
|
-
if isinstance(self.content, Unset):
|
|
100
|
-
content = UNSET
|
|
101
|
-
elif isinstance(self.content, JsonNode):
|
|
102
|
-
content = self.content.to_dict()
|
|
103
|
-
else:
|
|
104
|
-
content = self.content
|
|
90
|
+
content = self.content
|
|
105
91
|
|
|
106
92
|
relations: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
107
93
|
if not isinstance(self.relations, Unset):
|
|
@@ -166,10 +152,9 @@ class CreateRecordCommand:
|
|
|
166
152
|
|
|
167
153
|
@classmethod
|
|
168
154
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
169
|
-
from ..models.record_relation_dto import RecordRelationDto
|
|
170
|
-
from ..models.json_node import JsonNode
|
|
171
155
|
from ..models.create_record_command_tags import CreateRecordCommandTags
|
|
172
156
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
157
|
+
from ..models.record_relation_dto import RecordRelationDto
|
|
173
158
|
d = dict(src_dict)
|
|
174
159
|
title = d.pop("title", UNSET)
|
|
175
160
|
|
|
@@ -213,45 +198,9 @@ class CreateRecordCommand:
|
|
|
213
198
|
event_date = _parse_event_date(d.pop("eventDate", UNSET))
|
|
214
199
|
|
|
215
200
|
|
|
216
|
-
|
|
217
|
-
if data is None:
|
|
218
|
-
return data
|
|
219
|
-
if isinstance(data, Unset):
|
|
220
|
-
return data
|
|
221
|
-
try:
|
|
222
|
-
if not isinstance(data, dict):
|
|
223
|
-
raise TypeError()
|
|
224
|
-
schema_type_0 = JsonNode.from_dict(data)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return schema_type_0
|
|
229
|
-
except: # noqa: E722
|
|
230
|
-
pass
|
|
231
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
232
|
-
|
|
233
|
-
schema = _parse_schema(d.pop("schema", UNSET))
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
def _parse_content(data: object) -> Union['JsonNode', None, Unset]:
|
|
237
|
-
if data is None:
|
|
238
|
-
return data
|
|
239
|
-
if isinstance(data, Unset):
|
|
240
|
-
return data
|
|
241
|
-
try:
|
|
242
|
-
if not isinstance(data, dict):
|
|
243
|
-
raise TypeError()
|
|
244
|
-
content_type_0 = JsonNode.from_dict(data)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
return content_type_0
|
|
249
|
-
except: # noqa: E722
|
|
250
|
-
pass
|
|
251
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
252
|
-
|
|
253
|
-
content = _parse_content(d.pop("content", UNSET))
|
|
201
|
+
schema = d.pop("schema", UNSET)
|
|
254
202
|
|
|
203
|
+
content = d.pop("content", UNSET)
|
|
255
204
|
|
|
256
205
|
relations = []
|
|
257
206
|
_relations = d.pop("relations", UNSET)
|
minikai/models/mini_dto.py
CHANGED
|
@@ -13,8 +13,8 @@ from typing import Union
|
|
|
13
13
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
15
15
|
from ..models.mini_template_dto import MiniTemplateDto
|
|
16
|
-
from ..models.workspace_dto import WorkspaceDto
|
|
17
16
|
from ..models.document_file_dto import DocumentFileDto
|
|
17
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -53,8 +53,8 @@ class MiniDto:
|
|
|
53
53
|
|
|
54
54
|
def to_dict(self) -> dict[str, Any]:
|
|
55
55
|
from ..models.mini_template_dto import MiniTemplateDto
|
|
56
|
-
from ..models.workspace_dto import WorkspaceDto
|
|
57
56
|
from ..models.document_file_dto import DocumentFileDto
|
|
57
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
58
58
|
id = self.id
|
|
59
59
|
|
|
60
60
|
name = self.name
|
|
@@ -132,8 +132,8 @@ class MiniDto:
|
|
|
132
132
|
@classmethod
|
|
133
133
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
134
134
|
from ..models.mini_template_dto import MiniTemplateDto
|
|
135
|
-
from ..models.workspace_dto import WorkspaceDto
|
|
136
135
|
from ..models.document_file_dto import DocumentFileDto
|
|
136
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
137
137
|
d = dict(src_dict)
|
|
138
138
|
id = d.pop("id", UNSET)
|
|
139
139
|
|
|
@@ -12,8 +12,8 @@ from typing import cast, Union
|
|
|
12
12
|
from typing import Union
|
|
13
13
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
15
|
-
from ..models.tool_dto import ToolDto
|
|
16
15
|
from ..models.workspace_dto import WorkspaceDto
|
|
16
|
+
from ..models.tool_dto import ToolDto
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -47,8 +47,8 @@ class MiniTemplateDto:
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def to_dict(self) -> dict[str, Any]:
|
|
50
|
-
from ..models.tool_dto import ToolDto
|
|
51
50
|
from ..models.workspace_dto import WorkspaceDto
|
|
51
|
+
from ..models.tool_dto import ToolDto
|
|
52
52
|
id = self.id
|
|
53
53
|
|
|
54
54
|
name = self.name
|
|
@@ -107,8 +107,8 @@ class MiniTemplateDto:
|
|
|
107
107
|
|
|
108
108
|
@classmethod
|
|
109
109
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
110
|
-
from ..models.tool_dto import ToolDto
|
|
111
110
|
from ..models.workspace_dto import WorkspaceDto
|
|
111
|
+
from ..models.tool_dto import ToolDto
|
|
112
112
|
d = dict(src_dict)
|
|
113
113
|
id = d.pop("id", UNSET)
|
|
114
114
|
|
minikai/models/record.py
CHANGED
|
@@ -14,11 +14,10 @@ from typing import Union
|
|
|
14
14
|
import datetime
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
|
+
from ..models.record_attachment import RecordAttachment
|
|
17
18
|
from ..models.record_tag import RecordTag
|
|
18
|
-
from ..models.record_authorization import RecordAuthorization
|
|
19
19
|
from ..models.record_relation import RecordRelation
|
|
20
|
-
from ..models.
|
|
21
|
-
from ..models.json_node import JsonNode
|
|
20
|
+
from ..models.record_authorization import RecordAuthorization
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
|
|
@@ -37,21 +36,22 @@ class Record:
|
|
|
37
36
|
title (Union[Unset, str]):
|
|
38
37
|
description (Union[None, Unset, str]):
|
|
39
38
|
created_at (Union[Unset, datetime.datetime]):
|
|
39
|
+
updated_at (Union[Unset, datetime.datetime]):
|
|
40
40
|
event_date (Union[None, Unset, datetime.datetime]):
|
|
41
41
|
created_by (Union[Unset, str]):
|
|
42
42
|
updated_by (Union[None, Unset, str]):
|
|
43
43
|
searchable (Union[Unset, bool]):
|
|
44
44
|
ttl (Union[None, Unset, int]):
|
|
45
45
|
archived (Union[Unset, bool]):
|
|
46
|
-
schema (Union[
|
|
47
|
-
content (Union[
|
|
46
|
+
schema (Union[Unset, Any]):
|
|
47
|
+
content (Union[Unset, Any]):
|
|
48
|
+
content_text (Union[None, Unset, str]):
|
|
48
49
|
attachments (Union[Unset, list['RecordAttachment']]):
|
|
49
50
|
authorization (Union[Unset, RecordAuthorization]):
|
|
50
51
|
relations (Union[Unset, list['RecordRelation']]):
|
|
51
52
|
external_uri (Union[None, Unset, str]):
|
|
52
53
|
labels (Union[Unset, list[str]]):
|
|
53
54
|
tags (Union[Unset, list['RecordTag']]):
|
|
54
|
-
field_ts (Union[Unset, int]):
|
|
55
55
|
field_etag (Union[None, Unset, str]):
|
|
56
56
|
"""
|
|
57
57
|
|
|
@@ -60,21 +60,22 @@ class Record:
|
|
|
60
60
|
title: Union[Unset, str] = UNSET
|
|
61
61
|
description: Union[None, Unset, str] = UNSET
|
|
62
62
|
created_at: Union[Unset, datetime.datetime] = UNSET
|
|
63
|
+
updated_at: Union[Unset, datetime.datetime] = UNSET
|
|
63
64
|
event_date: Union[None, Unset, datetime.datetime] = UNSET
|
|
64
65
|
created_by: Union[Unset, str] = UNSET
|
|
65
66
|
updated_by: Union[None, Unset, str] = UNSET
|
|
66
67
|
searchable: Union[Unset, bool] = UNSET
|
|
67
68
|
ttl: Union[None, Unset, int] = UNSET
|
|
68
69
|
archived: Union[Unset, bool] = UNSET
|
|
69
|
-
schema: Union[
|
|
70
|
-
content: Union[
|
|
70
|
+
schema: Union[Unset, Any] = UNSET
|
|
71
|
+
content: Union[Unset, Any] = UNSET
|
|
72
|
+
content_text: Union[None, Unset, str] = UNSET
|
|
71
73
|
attachments: Union[Unset, list['RecordAttachment']] = UNSET
|
|
72
74
|
authorization: Union[Unset, 'RecordAuthorization'] = UNSET
|
|
73
75
|
relations: Union[Unset, list['RecordRelation']] = UNSET
|
|
74
76
|
external_uri: Union[None, Unset, str] = UNSET
|
|
75
77
|
labels: Union[Unset, list[str]] = UNSET
|
|
76
78
|
tags: Union[Unset, list['RecordTag']] = UNSET
|
|
77
|
-
field_ts: Union[Unset, int] = UNSET
|
|
78
79
|
field_etag: Union[None, Unset, str] = UNSET
|
|
79
80
|
|
|
80
81
|
|
|
@@ -82,11 +83,10 @@ class Record:
|
|
|
82
83
|
|
|
83
84
|
|
|
84
85
|
def to_dict(self) -> dict[str, Any]:
|
|
86
|
+
from ..models.record_attachment import RecordAttachment
|
|
85
87
|
from ..models.record_tag import RecordTag
|
|
86
|
-
from ..models.record_authorization import RecordAuthorization
|
|
87
88
|
from ..models.record_relation import RecordRelation
|
|
88
|
-
from ..models.
|
|
89
|
-
from ..models.json_node import JsonNode
|
|
89
|
+
from ..models.record_authorization import RecordAuthorization
|
|
90
90
|
id = self.id
|
|
91
91
|
|
|
92
92
|
organization_id = self.organization_id
|
|
@@ -103,6 +103,10 @@ class Record:
|
|
|
103
103
|
if not isinstance(self.created_at, Unset):
|
|
104
104
|
created_at = self.created_at.isoformat()
|
|
105
105
|
|
|
106
|
+
updated_at: Union[Unset, str] = UNSET
|
|
107
|
+
if not isinstance(self.updated_at, Unset):
|
|
108
|
+
updated_at = self.updated_at.isoformat()
|
|
109
|
+
|
|
106
110
|
event_date: Union[None, Unset, str]
|
|
107
111
|
if isinstance(self.event_date, Unset):
|
|
108
112
|
event_date = UNSET
|
|
@@ -129,21 +133,15 @@ class Record:
|
|
|
129
133
|
|
|
130
134
|
archived = self.archived
|
|
131
135
|
|
|
132
|
-
schema
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
elif isinstance(self.schema, JsonNode):
|
|
136
|
-
schema = self.schema.to_dict()
|
|
137
|
-
else:
|
|
138
|
-
schema = self.schema
|
|
136
|
+
schema = self.schema
|
|
137
|
+
|
|
138
|
+
content = self.content
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
if isinstance(self.
|
|
142
|
-
|
|
143
|
-
elif isinstance(self.content, JsonNode):
|
|
144
|
-
content = self.content.to_dict()
|
|
140
|
+
content_text: Union[None, Unset, str]
|
|
141
|
+
if isinstance(self.content_text, Unset):
|
|
142
|
+
content_text = UNSET
|
|
145
143
|
else:
|
|
146
|
-
|
|
144
|
+
content_text = self.content_text
|
|
147
145
|
|
|
148
146
|
attachments: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
149
147
|
if not isinstance(self.attachments, Unset):
|
|
@@ -188,8 +186,6 @@ class Record:
|
|
|
188
186
|
|
|
189
187
|
|
|
190
188
|
|
|
191
|
-
field_ts = self.field_ts
|
|
192
|
-
|
|
193
189
|
field_etag: Union[None, Unset, str]
|
|
194
190
|
if isinstance(self.field_etag, Unset):
|
|
195
191
|
field_etag = UNSET
|
|
@@ -211,6 +207,8 @@ class Record:
|
|
|
211
207
|
field_dict["description"] = description
|
|
212
208
|
if created_at is not UNSET:
|
|
213
209
|
field_dict["createdAt"] = created_at
|
|
210
|
+
if updated_at is not UNSET:
|
|
211
|
+
field_dict["updatedAt"] = updated_at
|
|
214
212
|
if event_date is not UNSET:
|
|
215
213
|
field_dict["eventDate"] = event_date
|
|
216
214
|
if created_by is not UNSET:
|
|
@@ -227,6 +225,8 @@ class Record:
|
|
|
227
225
|
field_dict["schema"] = schema
|
|
228
226
|
if content is not UNSET:
|
|
229
227
|
field_dict["content"] = content
|
|
228
|
+
if content_text is not UNSET:
|
|
229
|
+
field_dict["contentText"] = content_text
|
|
230
230
|
if attachments is not UNSET:
|
|
231
231
|
field_dict["attachments"] = attachments
|
|
232
232
|
if authorization is not UNSET:
|
|
@@ -239,8 +239,6 @@ class Record:
|
|
|
239
239
|
field_dict["labels"] = labels
|
|
240
240
|
if tags is not UNSET:
|
|
241
241
|
field_dict["tags"] = tags
|
|
242
|
-
if field_ts is not UNSET:
|
|
243
|
-
field_dict["_ts"] = field_ts
|
|
244
242
|
if field_etag is not UNSET:
|
|
245
243
|
field_dict["_etag"] = field_etag
|
|
246
244
|
|
|
@@ -250,11 +248,10 @@ class Record:
|
|
|
250
248
|
|
|
251
249
|
@classmethod
|
|
252
250
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
251
|
+
from ..models.record_attachment import RecordAttachment
|
|
253
252
|
from ..models.record_tag import RecordTag
|
|
254
|
-
from ..models.record_authorization import RecordAuthorization
|
|
255
253
|
from ..models.record_relation import RecordRelation
|
|
256
|
-
from ..models.
|
|
257
|
-
from ..models.json_node import JsonNode
|
|
254
|
+
from ..models.record_authorization import RecordAuthorization
|
|
258
255
|
d = dict(src_dict)
|
|
259
256
|
id = d.pop("id", UNSET)
|
|
260
257
|
|
|
@@ -282,6 +279,16 @@ class Record:
|
|
|
282
279
|
|
|
283
280
|
|
|
284
281
|
|
|
282
|
+
_updated_at = d.pop("updatedAt", UNSET)
|
|
283
|
+
updated_at: Union[Unset, datetime.datetime]
|
|
284
|
+
if isinstance(_updated_at, Unset):
|
|
285
|
+
updated_at = UNSET
|
|
286
|
+
else:
|
|
287
|
+
updated_at = isoparse(_updated_at)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
285
292
|
def _parse_event_date(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
286
293
|
if data is None:
|
|
287
294
|
return data
|
|
@@ -328,44 +335,18 @@ class Record:
|
|
|
328
335
|
|
|
329
336
|
archived = d.pop("archived", UNSET)
|
|
330
337
|
|
|
331
|
-
|
|
332
|
-
if data is None:
|
|
333
|
-
return data
|
|
334
|
-
if isinstance(data, Unset):
|
|
335
|
-
return data
|
|
336
|
-
try:
|
|
337
|
-
if not isinstance(data, dict):
|
|
338
|
-
raise TypeError()
|
|
339
|
-
schema_type_0 = JsonNode.from_dict(data)
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
return schema_type_0
|
|
344
|
-
except: # noqa: E722
|
|
345
|
-
pass
|
|
346
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
338
|
+
schema = d.pop("schema", UNSET)
|
|
347
339
|
|
|
348
|
-
|
|
340
|
+
content = d.pop("content", UNSET)
|
|
349
341
|
|
|
350
|
-
|
|
351
|
-
def _parse_content(data: object) -> Union['JsonNode', None, Unset]:
|
|
342
|
+
def _parse_content_text(data: object) -> Union[None, Unset, str]:
|
|
352
343
|
if data is None:
|
|
353
344
|
return data
|
|
354
345
|
if isinstance(data, Unset):
|
|
355
346
|
return data
|
|
356
|
-
|
|
357
|
-
if not isinstance(data, dict):
|
|
358
|
-
raise TypeError()
|
|
359
|
-
content_type_0 = JsonNode.from_dict(data)
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
return content_type_0
|
|
364
|
-
except: # noqa: E722
|
|
365
|
-
pass
|
|
366
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
347
|
+
return cast(Union[None, Unset, str], data)
|
|
367
348
|
|
|
368
|
-
|
|
349
|
+
content_text = _parse_content_text(d.pop("contentText", UNSET))
|
|
369
350
|
|
|
370
351
|
|
|
371
352
|
attachments = []
|
|
@@ -421,8 +402,6 @@ class Record:
|
|
|
421
402
|
tags.append(tags_item)
|
|
422
403
|
|
|
423
404
|
|
|
424
|
-
field_ts = d.pop("_ts", UNSET)
|
|
425
|
-
|
|
426
405
|
def _parse_field_etag(data: object) -> Union[None, Unset, str]:
|
|
427
406
|
if data is None:
|
|
428
407
|
return data
|
|
@@ -439,6 +418,7 @@ class Record:
|
|
|
439
418
|
title=title,
|
|
440
419
|
description=description,
|
|
441
420
|
created_at=created_at,
|
|
421
|
+
updated_at=updated_at,
|
|
442
422
|
event_date=event_date,
|
|
443
423
|
created_by=created_by,
|
|
444
424
|
updated_by=updated_by,
|
|
@@ -447,13 +427,13 @@ class Record:
|
|
|
447
427
|
archived=archived,
|
|
448
428
|
schema=schema,
|
|
449
429
|
content=content,
|
|
430
|
+
content_text=content_text,
|
|
450
431
|
attachments=attachments,
|
|
451
432
|
authorization=authorization,
|
|
452
433
|
relations=relations,
|
|
453
434
|
external_uri=external_uri,
|
|
454
435
|
labels=labels,
|
|
455
436
|
tags=tags,
|
|
456
|
-
field_ts=field_ts,
|
|
457
437
|
field_etag=field_etag,
|
|
458
438
|
)
|
|
459
439
|
|
minikai/models/record_dto.py
CHANGED
|
@@ -14,11 +14,10 @@ from typing import Union
|
|
|
14
14
|
import datetime
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
|
-
from ..models.
|
|
17
|
+
from ..models.record_dto_tags import RecordDtoTags
|
|
18
18
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
19
19
|
from ..models.record_relation_dto import RecordRelationDto
|
|
20
|
-
from ..models.
|
|
21
|
-
from ..models.json_node import JsonNode
|
|
20
|
+
from ..models.record_attachment_dto import RecordAttachmentDto
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
|
|
@@ -43,8 +42,8 @@ class RecordDto:
|
|
|
43
42
|
searchable (Union[Unset, bool]):
|
|
44
43
|
ttl (Union[None, Unset, int]):
|
|
45
44
|
archived (Union[Unset, bool]):
|
|
46
|
-
schema (Union[
|
|
47
|
-
content (Union[
|
|
45
|
+
schema (Union[Unset, Any]):
|
|
46
|
+
content (Union[Unset, Any]):
|
|
48
47
|
attachments (Union[Unset, list['RecordAttachmentDto']]):
|
|
49
48
|
authorization (Union[Unset, RecordAuthorizationDto]):
|
|
50
49
|
relations (Union[Unset, list['RecordRelationDto']]):
|
|
@@ -64,8 +63,8 @@ class RecordDto:
|
|
|
64
63
|
searchable: Union[Unset, bool] = UNSET
|
|
65
64
|
ttl: Union[None, Unset, int] = UNSET
|
|
66
65
|
archived: Union[Unset, bool] = UNSET
|
|
67
|
-
schema: Union[
|
|
68
|
-
content: Union[
|
|
66
|
+
schema: Union[Unset, Any] = UNSET
|
|
67
|
+
content: Union[Unset, Any] = UNSET
|
|
69
68
|
attachments: Union[Unset, list['RecordAttachmentDto']] = UNSET
|
|
70
69
|
authorization: Union[Unset, 'RecordAuthorizationDto'] = UNSET
|
|
71
70
|
relations: Union[Unset, list['RecordRelationDto']] = UNSET
|
|
@@ -78,11 +77,10 @@ class RecordDto:
|
|
|
78
77
|
|
|
79
78
|
|
|
80
79
|
def to_dict(self) -> dict[str, Any]:
|
|
81
|
-
from ..models.
|
|
80
|
+
from ..models.record_dto_tags import RecordDtoTags
|
|
82
81
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
83
82
|
from ..models.record_relation_dto import RecordRelationDto
|
|
84
|
-
from ..models.
|
|
85
|
-
from ..models.json_node import JsonNode
|
|
83
|
+
from ..models.record_attachment_dto import RecordAttachmentDto
|
|
86
84
|
id = self.id
|
|
87
85
|
|
|
88
86
|
title = self.title
|
|
@@ -127,21 +125,9 @@ class RecordDto:
|
|
|
127
125
|
|
|
128
126
|
archived = self.archived
|
|
129
127
|
|
|
130
|
-
schema
|
|
131
|
-
if isinstance(self.schema, Unset):
|
|
132
|
-
schema = UNSET
|
|
133
|
-
elif isinstance(self.schema, JsonNode):
|
|
134
|
-
schema = self.schema.to_dict()
|
|
135
|
-
else:
|
|
136
|
-
schema = self.schema
|
|
128
|
+
schema = self.schema
|
|
137
129
|
|
|
138
|
-
content
|
|
139
|
-
if isinstance(self.content, Unset):
|
|
140
|
-
content = UNSET
|
|
141
|
-
elif isinstance(self.content, JsonNode):
|
|
142
|
-
content = self.content.to_dict()
|
|
143
|
-
else:
|
|
144
|
-
content = self.content
|
|
130
|
+
content = self.content
|
|
145
131
|
|
|
146
132
|
attachments: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
147
133
|
if not isinstance(self.attachments, Unset):
|
|
@@ -231,11 +217,10 @@ class RecordDto:
|
|
|
231
217
|
|
|
232
218
|
@classmethod
|
|
233
219
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
234
|
-
from ..models.
|
|
220
|
+
from ..models.record_dto_tags import RecordDtoTags
|
|
235
221
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
236
222
|
from ..models.record_relation_dto import RecordRelationDto
|
|
237
|
-
from ..models.
|
|
238
|
-
from ..models.json_node import JsonNode
|
|
223
|
+
from ..models.record_attachment_dto import RecordAttachmentDto
|
|
239
224
|
d = dict(src_dict)
|
|
240
225
|
id = d.pop("id", UNSET)
|
|
241
226
|
|
|
@@ -317,45 +302,9 @@ class RecordDto:
|
|
|
317
302
|
|
|
318
303
|
archived = d.pop("archived", UNSET)
|
|
319
304
|
|
|
320
|
-
|
|
321
|
-
if data is None:
|
|
322
|
-
return data
|
|
323
|
-
if isinstance(data, Unset):
|
|
324
|
-
return data
|
|
325
|
-
try:
|
|
326
|
-
if not isinstance(data, dict):
|
|
327
|
-
raise TypeError()
|
|
328
|
-
schema_type_0 = JsonNode.from_dict(data)
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
return schema_type_0
|
|
333
|
-
except: # noqa: E722
|
|
334
|
-
pass
|
|
335
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
336
|
-
|
|
337
|
-
schema = _parse_schema(d.pop("schema", UNSET))
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
def _parse_content(data: object) -> Union['JsonNode', None, Unset]:
|
|
341
|
-
if data is None:
|
|
342
|
-
return data
|
|
343
|
-
if isinstance(data, Unset):
|
|
344
|
-
return data
|
|
345
|
-
try:
|
|
346
|
-
if not isinstance(data, dict):
|
|
347
|
-
raise TypeError()
|
|
348
|
-
content_type_0 = JsonNode.from_dict(data)
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
return content_type_0
|
|
353
|
-
except: # noqa: E722
|
|
354
|
-
pass
|
|
355
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
356
|
-
|
|
357
|
-
content = _parse_content(d.pop("content", UNSET))
|
|
305
|
+
schema = d.pop("schema", UNSET)
|
|
358
306
|
|
|
307
|
+
content = d.pop("content", UNSET)
|
|
359
308
|
|
|
360
309
|
attachments = []
|
|
361
310
|
_attachments = d.pop("attachments", UNSET)
|
|
@@ -14,10 +14,9 @@ from typing import Union
|
|
|
14
14
|
import datetime
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
|
-
from ..models.record_relation_dto import RecordRelationDto
|
|
18
|
-
from ..models.json_node import JsonNode
|
|
19
17
|
from ..models.update_record_command_tags import UpdateRecordCommandTags
|
|
20
18
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
19
|
+
from ..models.record_relation_dto import RecordRelationDto
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
|
|
@@ -35,13 +34,13 @@ class UpdateRecordCommand:
|
|
|
35
34
|
title (Union[Unset, str]):
|
|
36
35
|
description (Union[None, Unset, str]):
|
|
37
36
|
event_date (Union[None, Unset, datetime.datetime]):
|
|
38
|
-
schema (Union[
|
|
39
|
-
content (Union[
|
|
37
|
+
schema (Union[Unset, Any]):
|
|
38
|
+
content (Union[Unset, Any]):
|
|
40
39
|
relations (Union[Unset, list['RecordRelationDto']]):
|
|
41
40
|
external_uri (Union[None, Unset, str]):
|
|
42
41
|
labels (Union[Unset, list[str]]):
|
|
43
42
|
tags (Union[Unset, UpdateRecordCommandTags]):
|
|
44
|
-
authorization (Union[
|
|
43
|
+
authorization (Union['RecordAuthorizationDto', None, Unset]):
|
|
45
44
|
archived (Union[Unset, bool]):
|
|
46
45
|
"""
|
|
47
46
|
|
|
@@ -49,13 +48,13 @@ class UpdateRecordCommand:
|
|
|
49
48
|
title: Union[Unset, str] = UNSET
|
|
50
49
|
description: Union[None, Unset, str] = UNSET
|
|
51
50
|
event_date: Union[None, Unset, datetime.datetime] = UNSET
|
|
52
|
-
schema: Union[
|
|
53
|
-
content: Union[
|
|
51
|
+
schema: Union[Unset, Any] = UNSET
|
|
52
|
+
content: Union[Unset, Any] = UNSET
|
|
54
53
|
relations: Union[Unset, list['RecordRelationDto']] = UNSET
|
|
55
54
|
external_uri: Union[None, Unset, str] = UNSET
|
|
56
55
|
labels: Union[Unset, list[str]] = UNSET
|
|
57
56
|
tags: Union[Unset, 'UpdateRecordCommandTags'] = UNSET
|
|
58
|
-
authorization: Union[
|
|
57
|
+
authorization: Union['RecordAuthorizationDto', None, Unset] = UNSET
|
|
59
58
|
archived: Union[Unset, bool] = UNSET
|
|
60
59
|
|
|
61
60
|
|
|
@@ -63,10 +62,9 @@ class UpdateRecordCommand:
|
|
|
63
62
|
|
|
64
63
|
|
|
65
64
|
def to_dict(self) -> dict[str, Any]:
|
|
66
|
-
from ..models.record_relation_dto import RecordRelationDto
|
|
67
|
-
from ..models.json_node import JsonNode
|
|
68
65
|
from ..models.update_record_command_tags import UpdateRecordCommandTags
|
|
69
66
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
67
|
+
from ..models.record_relation_dto import RecordRelationDto
|
|
70
68
|
id = self.id
|
|
71
69
|
|
|
72
70
|
title = self.title
|
|
@@ -85,21 +83,9 @@ class UpdateRecordCommand:
|
|
|
85
83
|
else:
|
|
86
84
|
event_date = self.event_date
|
|
87
85
|
|
|
88
|
-
schema
|
|
89
|
-
if isinstance(self.schema, Unset):
|
|
90
|
-
schema = UNSET
|
|
91
|
-
elif isinstance(self.schema, JsonNode):
|
|
92
|
-
schema = self.schema.to_dict()
|
|
93
|
-
else:
|
|
94
|
-
schema = self.schema
|
|
86
|
+
schema = self.schema
|
|
95
87
|
|
|
96
|
-
content
|
|
97
|
-
if isinstance(self.content, Unset):
|
|
98
|
-
content = UNSET
|
|
99
|
-
elif isinstance(self.content, JsonNode):
|
|
100
|
-
content = self.content.to_dict()
|
|
101
|
-
else:
|
|
102
|
-
content = self.content
|
|
88
|
+
content = self.content
|
|
103
89
|
|
|
104
90
|
relations: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
105
91
|
if not isinstance(self.relations, Unset):
|
|
@@ -126,9 +112,13 @@ class UpdateRecordCommand:
|
|
|
126
112
|
if not isinstance(self.tags, Unset):
|
|
127
113
|
tags = self.tags.to_dict()
|
|
128
114
|
|
|
129
|
-
authorization: Union[Unset, dict[str, Any]]
|
|
130
|
-
if
|
|
115
|
+
authorization: Union[None, Unset, dict[str, Any]]
|
|
116
|
+
if isinstance(self.authorization, Unset):
|
|
117
|
+
authorization = UNSET
|
|
118
|
+
elif isinstance(self.authorization, RecordAuthorizationDto):
|
|
131
119
|
authorization = self.authorization.to_dict()
|
|
120
|
+
else:
|
|
121
|
+
authorization = self.authorization
|
|
132
122
|
|
|
133
123
|
archived = self.archived
|
|
134
124
|
|
|
@@ -168,10 +158,9 @@ class UpdateRecordCommand:
|
|
|
168
158
|
|
|
169
159
|
@classmethod
|
|
170
160
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
171
|
-
from ..models.record_relation_dto import RecordRelationDto
|
|
172
|
-
from ..models.json_node import JsonNode
|
|
173
161
|
from ..models.update_record_command_tags import UpdateRecordCommandTags
|
|
174
162
|
from ..models.record_authorization_dto import RecordAuthorizationDto
|
|
163
|
+
from ..models.record_relation_dto import RecordRelationDto
|
|
175
164
|
d = dict(src_dict)
|
|
176
165
|
id = d.pop("id", UNSET)
|
|
177
166
|
|
|
@@ -207,45 +196,9 @@ class UpdateRecordCommand:
|
|
|
207
196
|
event_date = _parse_event_date(d.pop("eventDate", UNSET))
|
|
208
197
|
|
|
209
198
|
|
|
210
|
-
|
|
211
|
-
if data is None:
|
|
212
|
-
return data
|
|
213
|
-
if isinstance(data, Unset):
|
|
214
|
-
return data
|
|
215
|
-
try:
|
|
216
|
-
if not isinstance(data, dict):
|
|
217
|
-
raise TypeError()
|
|
218
|
-
schema_type_0 = JsonNode.from_dict(data)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
return schema_type_0
|
|
223
|
-
except: # noqa: E722
|
|
224
|
-
pass
|
|
225
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
226
|
-
|
|
227
|
-
schema = _parse_schema(d.pop("schema", UNSET))
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
def _parse_content(data: object) -> Union['JsonNode', None, Unset]:
|
|
231
|
-
if data is None:
|
|
232
|
-
return data
|
|
233
|
-
if isinstance(data, Unset):
|
|
234
|
-
return data
|
|
235
|
-
try:
|
|
236
|
-
if not isinstance(data, dict):
|
|
237
|
-
raise TypeError()
|
|
238
|
-
content_type_0 = JsonNode.from_dict(data)
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return content_type_0
|
|
243
|
-
except: # noqa: E722
|
|
244
|
-
pass
|
|
245
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
246
|
-
|
|
247
|
-
content = _parse_content(d.pop("content", UNSET))
|
|
199
|
+
schema = d.pop("schema", UNSET)
|
|
248
200
|
|
|
201
|
+
content = d.pop("content", UNSET)
|
|
249
202
|
|
|
250
203
|
relations = []
|
|
251
204
|
_relations = d.pop("relations", UNSET)
|
|
@@ -280,14 +233,24 @@ class UpdateRecordCommand:
|
|
|
280
233
|
|
|
281
234
|
|
|
282
235
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
236
|
+
def _parse_authorization(data: object) -> Union['RecordAuthorizationDto', None, Unset]:
|
|
237
|
+
if data is None:
|
|
238
|
+
return data
|
|
239
|
+
if isinstance(data, Unset):
|
|
240
|
+
return data
|
|
241
|
+
try:
|
|
242
|
+
if not isinstance(data, dict):
|
|
243
|
+
raise TypeError()
|
|
244
|
+
authorization_type_0 = RecordAuthorizationDto.from_dict(data)
|
|
245
|
+
|
|
289
246
|
|
|
290
247
|
|
|
248
|
+
return authorization_type_0
|
|
249
|
+
except: # noqa: E722
|
|
250
|
+
pass
|
|
251
|
+
return cast(Union['RecordAuthorizationDto', None, Unset], data)
|
|
252
|
+
|
|
253
|
+
authorization = _parse_authorization(d.pop("authorization", UNSET))
|
|
291
254
|
|
|
292
255
|
|
|
293
256
|
archived = d.pop("archived", UNSET)
|
|
@@ -38,11 +38,11 @@ minikai/api/users/get_users.py,sha256=DkZIUC9IWuWfvqNq1F4XsTAjo1LaiB7ekvKMD0EYWD
|
|
|
38
38
|
minikai/api/users/post_api_users_minis.py,sha256=HKywpxHf9Nut0l8ufuVZEsI-Vi-vAlyFs2ypj4TTo6w,4394
|
|
39
39
|
minikai/client.py,sha256=MQiaVLlrcv5XT405hz_Xb6ZleKaEfIiqtOelJfJsSRA,12422
|
|
40
40
|
minikai/errors.py,sha256=trp-p5qn1_JLRxGZhdHtICaNPaCrcDCe4TgIihBravk,546
|
|
41
|
-
minikai/models/__init__.py,sha256=
|
|
41
|
+
minikai/models/__init__.py,sha256=vtjmYjJrul3kujUhRvXodIR2gqSKlSOqMlY2jRJzadk,3385
|
|
42
42
|
minikai/models/add_attachments_body.py,sha256=P-a9mF9ZfgwlEe2ldQFbPKCveyRhEjfPGuJkHoWxKIE,3670
|
|
43
43
|
minikai/models/create_group_command.py,sha256=oejPqgaQ9eMPjuOpbO61y9bBIxdLBkiaM_uyIHzeToM,3171
|
|
44
44
|
minikai/models/create_mini_command.py,sha256=c1myG5XgdETvSyJGrX-h7GpRbHFr0R5sLMiQc0ZpyJQ,4037
|
|
45
|
-
minikai/models/create_record_command.py,sha256=
|
|
45
|
+
minikai/models/create_record_command.py,sha256=e48KqWMdt4aRQ2bf0Kh0epOUELb0DRRdHJ4hjwkci50,8099
|
|
46
46
|
minikai/models/create_record_command_tags.py,sha256=As_aj7WHfQHTneQNq-f2EUz4zhC8io-vDj5BHOU9dDE,1392
|
|
47
47
|
minikai/models/cursor_paginated_list_of_record_dto.py,sha256=YV6AOBvgXfE-S1Jq0I4aqnYSH91Rz8zDTzkRQRDaswI,3251
|
|
48
48
|
minikai/models/document_file_dto.py,sha256=rRs3uyiexduhmIRIks2zEY2tNXo1tWEIwFpEpnPB9gA,4699
|
|
@@ -53,21 +53,19 @@ minikai/models/form_field_type.py,sha256=fW6OEODfxB1dWAxPC6gQ6PBscSFj47f7ArejhW8
|
|
|
53
53
|
minikai/models/group_dto.py,sha256=VRjsc7eytVGB-3kMJ0dpY0IcJHpIbsNBunLpqPcp7m8,3953
|
|
54
54
|
minikai/models/http_validation_problem_details.py,sha256=n2dEq8T31TDT7PFA0y-S4NQCz9ezwpMCUKHxse3dUXU,5828
|
|
55
55
|
minikai/models/http_validation_problem_details_errors.py,sha256=4lT_oiyoKAxrbTV8KWuq04mNqRH0nFUWW8h_lL0oXwU,1781
|
|
56
|
-
minikai/models/
|
|
57
|
-
minikai/models/
|
|
58
|
-
minikai/models/mini_dto.py,sha256=Eqf4CVV04WgkqKORECZqh_xmwZ3G5n174ABuyF4yabM,6853
|
|
59
|
-
minikai/models/mini_template_dto.py,sha256=A_ElBnJtc2lbN8xZgJXGhgwSgNQS6hgPBsJ8EvduUcg,4551
|
|
56
|
+
minikai/models/mini_dto.py,sha256=SExqXxSIXHrycEfOipgClrnL11SKHQM2t-vuH-KWY2c,6853
|
|
57
|
+
minikai/models/mini_template_dto.py,sha256=5QD-zQDji9LxDS85lqkTA_yBO0DWZX0xVv1_yjM32Ek,4551
|
|
60
58
|
minikai/models/paginated_list_of_record_dto.py,sha256=kwPv7UxZpQuhn9y-Vqnmd6XH31mAHfzb9q8fRyFAu3k,3283
|
|
61
59
|
minikai/models/patch_mini_command.py,sha256=W-hUZcWbh4h1P8xnYH7diiPlp2RD3Dqb2J0o1ckkYXI,2371
|
|
62
60
|
minikai/models/problem_details.py,sha256=5Gmva0NBCiwcun-q7VQpWi4C3smGE9X9R1jmL06fTPs,4754
|
|
63
|
-
minikai/models/record.py,sha256=
|
|
61
|
+
minikai/models/record.py,sha256=nepj2GEqD4gQgAjDqRkxn0SuJJh0L-WtKA90ZT56PfI,13791
|
|
64
62
|
minikai/models/record_attachment.py,sha256=eGdexnyM_7hv95BcoWEfJLbxY4snjl-A4OIDBGfLpv4,8020
|
|
65
63
|
minikai/models/record_attachment_dto.py,sha256=Chan6LcVKPoI2h2a8GK4tgutaGSbfXlj2_zgMqGbX4Q,8073
|
|
66
64
|
minikai/models/record_attachment_dto_metadata_type_0.py,sha256=SL2MNC334q6aIn2lBAoFh5ZABgZP2PzWBUIlPQBMthU,1443
|
|
67
65
|
minikai/models/record_attachment_metadata_type_0.py,sha256=Wq4zXZikUugFmi-80jucluWmDnQUUq9yP7YZ67BdTjI,1425
|
|
68
66
|
minikai/models/record_authorization.py,sha256=3DYRP53eBgcIqhy3kfjRaAlbKSoi-JagqXq9CEMRjDs,2425
|
|
69
67
|
minikai/models/record_authorization_dto.py,sha256=vaX9WEfiqSSRJLDwvUIas6xMXQaWSlFSOp0Dq_lp_Zg,2439
|
|
70
|
-
minikai/models/record_dto.py,sha256=
|
|
68
|
+
minikai/models/record_dto.py,sha256=MwVOVxpaihDMvD3YIV-lLLE1yJHwjOsZAxvJIoDDip0,11996
|
|
71
69
|
minikai/models/record_dto_tags.py,sha256=ZNUvGFIzujwA-7nhn_WmrAF4SiHpZ5lybvan8vvN-os,1339
|
|
72
70
|
minikai/models/record_relation.py,sha256=P5bZxZcTtQyiwWRNpxyjjUIPzpJ-CxuA6xoj04fFJhs,2430
|
|
73
71
|
minikai/models/record_relation_dto.py,sha256=zdRtd64Yb9am0-qCZ7wP2LiwwVu7ckEfuw-M-gWvN78,2444
|
|
@@ -79,13 +77,13 @@ minikai/models/update_attachments_body.py,sha256=Vq8nOZG79zePut9iqHiIz6BR60-42K6
|
|
|
79
77
|
minikai/models/update_group_command.py,sha256=M1BHvascJPK86tzjTJafvazHOd5IzCE-IHb1H6x82k4,3836
|
|
80
78
|
minikai/models/update_mini_command.py,sha256=XeTteq2QvXiUFjUDjKhhjLHW8bir5iokpZRVVnHVDag,4243
|
|
81
79
|
minikai/models/update_mini_template_workspaces_command.py,sha256=m-vHPJS_60BUHUb6GBRKwvIwpv2VoLlz034emM1Hd-4,1706
|
|
82
|
-
minikai/models/update_record_command.py,sha256=
|
|
80
|
+
minikai/models/update_record_command.py,sha256=ZwcOpH_NRP8yqL6O9vcusT5dpR6FVnZT67Da25mpTeg,8448
|
|
83
81
|
minikai/models/update_record_command_tags.py,sha256=kJZ3a241woFhLv2L7dl5mRDcE5Yv6q2k84mGl-6Gfhg,1392
|
|
84
82
|
minikai/models/user_dto.py,sha256=Hgd-wweke5g9Kv98BaiAhFPSXyG355odOpKrhw6KjCU,6351
|
|
85
83
|
minikai/models/user_to_mini_dto.py,sha256=PKFM7VLUuHoDeMsXcteh_Bk4dqyQD5HCCy9Jt-ynLfs,2409
|
|
86
84
|
minikai/models/workspace_dto.py,sha256=CaOK9P5EfGijPHD8maZuLCq_xaChd3aUp3sLqPGabB0,2334
|
|
87
85
|
minikai/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
88
86
|
minikai/types.py,sha256=hEuJx--jICd2FIQy390JC7wcmZgGuB-uFzp3_mouNdo,1398
|
|
89
|
-
minikai-0.1.
|
|
90
|
-
minikai-0.1.
|
|
91
|
-
minikai-0.1.
|
|
87
|
+
minikai-0.1.5.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
88
|
+
minikai-0.1.5.dist-info/METADATA,sha256=y-JsAET7k-3C60f-6jjmMoPjO1NvLWF68Q6ui6-o9zA,5092
|
|
89
|
+
minikai-0.1.5.dist-info/RECORD,,
|
minikai/models/json_node.py
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
from ..types import UNSET, Unset
|
|
8
|
-
|
|
9
|
-
from ..types import UNSET, Unset
|
|
10
|
-
from typing import cast
|
|
11
|
-
from typing import cast, Union
|
|
12
|
-
from typing import Union
|
|
13
|
-
|
|
14
|
-
if TYPE_CHECKING:
|
|
15
|
-
from ..models.json_node_options import JsonNodeOptions
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
T = TypeVar("T", bound="JsonNode")
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@_attrs_define
|
|
26
|
-
class JsonNode:
|
|
27
|
-
""" The base class that represents a single node within a mutable JSON document.
|
|
28
|
-
|
|
29
|
-
Attributes:
|
|
30
|
-
options (Union['JsonNodeOptions', None, Unset]): Gets the options to control the behavior.
|
|
31
|
-
parent (Union['JsonNode', None, Unset]): Gets the parent JsonNode.
|
|
32
|
-
If there is no parent, null is returned.
|
|
33
|
-
A parent can either be a JsonObject or a JsonArray.
|
|
34
|
-
root (Union[Unset, JsonNode]): The base class that represents a single node within a mutable JSON document.
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
options: Union['JsonNodeOptions', None, Unset] = UNSET
|
|
38
|
-
parent: Union['JsonNode', None, Unset] = UNSET
|
|
39
|
-
root: Union[Unset, 'JsonNode'] = UNSET
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def to_dict(self) -> dict[str, Any]:
|
|
46
|
-
from ..models.json_node_options import JsonNodeOptions
|
|
47
|
-
options: Union[None, Unset, dict[str, Any]]
|
|
48
|
-
if isinstance(self.options, Unset):
|
|
49
|
-
options = UNSET
|
|
50
|
-
elif isinstance(self.options, JsonNodeOptions):
|
|
51
|
-
options = self.options.to_dict()
|
|
52
|
-
else:
|
|
53
|
-
options = self.options
|
|
54
|
-
|
|
55
|
-
parent: Union[None, Unset, dict[str, Any]]
|
|
56
|
-
if isinstance(self.parent, Unset):
|
|
57
|
-
parent = UNSET
|
|
58
|
-
elif isinstance(self.parent, JsonNode):
|
|
59
|
-
parent = self.parent.to_dict()
|
|
60
|
-
else:
|
|
61
|
-
parent = self.parent
|
|
62
|
-
|
|
63
|
-
root: Union[Unset, dict[str, Any]] = UNSET
|
|
64
|
-
if not isinstance(self.root, Unset):
|
|
65
|
-
root = self.root.to_dict()
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
field_dict: dict[str, Any] = {}
|
|
69
|
-
|
|
70
|
-
field_dict.update({
|
|
71
|
-
})
|
|
72
|
-
if options is not UNSET:
|
|
73
|
-
field_dict["options"] = options
|
|
74
|
-
if parent is not UNSET:
|
|
75
|
-
field_dict["parent"] = parent
|
|
76
|
-
if root is not UNSET:
|
|
77
|
-
field_dict["root"] = root
|
|
78
|
-
|
|
79
|
-
return field_dict
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
@classmethod
|
|
84
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
85
|
-
from ..models.json_node_options import JsonNodeOptions
|
|
86
|
-
d = dict(src_dict)
|
|
87
|
-
def _parse_options(data: object) -> Union['JsonNodeOptions', None, Unset]:
|
|
88
|
-
if data is None:
|
|
89
|
-
return data
|
|
90
|
-
if isinstance(data, Unset):
|
|
91
|
-
return data
|
|
92
|
-
try:
|
|
93
|
-
if not isinstance(data, dict):
|
|
94
|
-
raise TypeError()
|
|
95
|
-
options_type_0 = JsonNodeOptions.from_dict(data)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return options_type_0
|
|
100
|
-
except: # noqa: E722
|
|
101
|
-
pass
|
|
102
|
-
return cast(Union['JsonNodeOptions', None, Unset], data)
|
|
103
|
-
|
|
104
|
-
options = _parse_options(d.pop("options", UNSET))
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
def _parse_parent(data: object) -> Union['JsonNode', None, Unset]:
|
|
108
|
-
if data is None:
|
|
109
|
-
return data
|
|
110
|
-
if isinstance(data, Unset):
|
|
111
|
-
return data
|
|
112
|
-
try:
|
|
113
|
-
if not isinstance(data, dict):
|
|
114
|
-
raise TypeError()
|
|
115
|
-
parent_type_0 = JsonNode.from_dict(data)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return parent_type_0
|
|
120
|
-
except: # noqa: E722
|
|
121
|
-
pass
|
|
122
|
-
return cast(Union['JsonNode', None, Unset], data)
|
|
123
|
-
|
|
124
|
-
parent = _parse_parent(d.pop("parent", UNSET))
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
_root = d.pop("root", UNSET)
|
|
128
|
-
root: Union[Unset, JsonNode]
|
|
129
|
-
if isinstance(_root, Unset):
|
|
130
|
-
root = UNSET
|
|
131
|
-
else:
|
|
132
|
-
root = JsonNode.from_dict(_root)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
json_node = cls(
|
|
138
|
-
options=options,
|
|
139
|
-
parent=parent,
|
|
140
|
-
root=root,
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
return json_node
|
|
144
|
-
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
from ..types import UNSET, Unset
|
|
8
|
-
|
|
9
|
-
from ..types import UNSET, Unset
|
|
10
|
-
from typing import Union
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
T = TypeVar("T", bound="JsonNodeOptions")
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@_attrs_define
|
|
22
|
-
class JsonNodeOptions:
|
|
23
|
-
""" Options to control JsonNode behavior.
|
|
24
|
-
|
|
25
|
-
Attributes:
|
|
26
|
-
property_name_case_insensitive (Union[Unset, bool]): Gets or sets a value that indicates whether property names
|
|
27
|
-
on JsonObject are case insensitive.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
property_name_case_insensitive: Union[Unset, bool] = UNSET
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def to_dict(self) -> dict[str, Any]:
|
|
37
|
-
property_name_case_insensitive = self.property_name_case_insensitive
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
field_dict: dict[str, Any] = {}
|
|
41
|
-
|
|
42
|
-
field_dict.update({
|
|
43
|
-
})
|
|
44
|
-
if property_name_case_insensitive is not UNSET:
|
|
45
|
-
field_dict["propertyNameCaseInsensitive"] = property_name_case_insensitive
|
|
46
|
-
|
|
47
|
-
return field_dict
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
@classmethod
|
|
52
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
53
|
-
d = dict(src_dict)
|
|
54
|
-
property_name_case_insensitive = d.pop("propertyNameCaseInsensitive", UNSET)
|
|
55
|
-
|
|
56
|
-
json_node_options = cls(
|
|
57
|
-
property_name_case_insensitive=property_name_case_insensitive,
|
|
58
|
-
)
|
|
59
|
-
|
|
60
|
-
return json_node_options
|
|
61
|
-
|
|
File without changes
|