minikai 0.1.2__py3-none-any.whl → 0.1.3__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/__init__.py +1 -1
- minikai/api/__init__.py +1 -1
- minikai/api/groups/__init__.py +1 -1
- minikai/api/groups/add_minis_to_group.py +53 -33
- minikai/api/groups/add_users_to_group.py +53 -33
- minikai/api/groups/create_group.py +45 -27
- minikai/api/groups/delete_group.py +29 -9
- minikai/api/groups/get_group.py +47 -28
- minikai/api/groups/get_group_minis.py +52 -33
- minikai/api/groups/get_group_users.py +52 -33
- minikai/api/groups/get_groups.py +56 -34
- minikai/api/groups/remove_minis_from_group.py +53 -33
- minikai/api/groups/remove_users_from_group.py +53 -33
- minikai/api/groups/update_group.py +51 -33
- minikai/api/minis/__init__.py +1 -1
- minikai/api/minis/create_mini.py +45 -27
- minikai/api/minis/delete_mini.py +29 -9
- minikai/api/minis/get_external_mini.py +52 -33
- minikai/api/minis/get_minis.py +56 -34
- minikai/api/minis/patch_mini.py +51 -33
- minikai/api/minis/update_mini.py +51 -33
- minikai/api/records/__init__.py +1 -1
- minikai/api/records/add_attachments.py +59 -38
- minikai/api/records/add_relations.py +65 -43
- minikai/api/records/create_record.py +48 -28
- minikai/api/records/delete_record.py +29 -9
- minikai/api/records/download_attachment.py +119 -0
- minikai/api/records/get_records_by_external.py +68 -45
- minikai/api/records/remove_attachments.py +33 -11
- minikai/api/records/remove_relations.py +33 -11
- minikai/api/records/update_attachments.py +59 -38
- minikai/api/records/update_record.py +53 -33
- minikai/api/records/update_relations.py +65 -43
- minikai/api/users/__init__.py +1 -1
- minikai/api/users/delete_api_users_minis.py +31 -11
- minikai/api/users/get_api_users_minis.py +52 -33
- minikai/api/users/get_users.py +56 -34
- minikai/api/users/post_api_users_minis.py +52 -33
- minikai/client.py +6 -3
- minikai/errors.py +1 -3
- minikai/models/__init__.py +5 -1
- minikai/models/add_attachments_body.py +45 -13
- minikai/models/create_group_command.py +35 -10
- minikai/models/create_mini_command.py +34 -10
- minikai/models/create_record_command.py +87 -41
- minikai/models/create_record_command_tags.py +22 -3
- minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
- minikai/models/document_file_dto.py +37 -13
- minikai/models/document_file_metadata_dto.py +27 -7
- minikai/models/form_field.py +38 -12
- minikai/models/form_field_dto.py +48 -16
- minikai/models/form_field_type.py +2 -8
- minikai/models/group_dto.py +50 -19
- minikai/models/http_validation_problem_details.py +41 -16
- minikai/models/http_validation_problem_details_errors.py +26 -3
- minikai/models/json_node.py +49 -24
- minikai/models/json_node_options.py +26 -7
- minikai/models/mini_dto.py +62 -27
- minikai/models/mini_template_dto.py +50 -18
- minikai/models/paginated_list_of_record_dto.py +39 -16
- minikai/models/patch_mini_command.py +30 -8
- minikai/models/problem_details.py +34 -11
- minikai/models/record.py +134 -55
- minikai/models/record_attachment.py +56 -27
- minikai/models/record_attachment_dto.py +56 -27
- minikai/models/record_attachment_dto_metadata_type_0.py +22 -3
- minikai/models/record_attachment_metadata_type_0.py +22 -3
- minikai/models/record_authorization.py +41 -9
- minikai/models/record_authorization_dto.py +41 -9
- minikai/models/record_dto.py +113 -54
- minikai/models/record_dto_tags.py +22 -3
- minikai/models/record_relation.py +35 -11
- minikai/models/record_relation_dto.py +35 -11
- minikai/models/record_tag.py +40 -13
- minikai/models/record_tag_dto.py +68 -0
- minikai/models/slim_mini_dto.py +51 -22
- minikai/models/tool_dto.py +29 -10
- minikai/models/update_attachments_body.py +45 -13
- minikai/models/update_group_command.py +37 -11
- minikai/models/update_mini_command.py +35 -11
- minikai/models/update_mini_template_workspaces_command.py +30 -7
- minikai/models/update_record_command.py +87 -42
- minikai/models/update_record_command_tags.py +22 -3
- minikai/models/user_dto.py +50 -17
- minikai/models/user_to_mini_dto.py +30 -9
- minikai/models/workspace_dto.py +30 -9
- minikai/types.py +5 -6
- {minikai-0.1.2.dist-info → minikai-0.1.3.dist-info}/METADATA +1 -1
- minikai-0.1.3.dist-info/RECORD +91 -0
- minikai-0.1.2.dist-info/RECORD +0 -88
- {minikai-0.1.2.dist-info → minikai-0.1.3.dist-info}/WHEEL +0 -0
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
|
-
from ... import errors
|
|
7
6
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...types import Response
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
|
+
from ... import errors
|
|
9
|
+
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
def _get_kwargs(
|
|
12
14
|
record_id: str,
|
|
15
|
+
|
|
13
16
|
) -> dict[str, Any]:
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
14
23
|
_kwargs: dict[str, Any] = {
|
|
15
24
|
"method": "delete",
|
|
16
|
-
"url":
|
|
25
|
+
"url": "/api/Records/{record_id}".format(record_id=record_id,),
|
|
17
26
|
}
|
|
18
27
|
|
|
28
|
+
|
|
19
29
|
return _kwargs
|
|
20
30
|
|
|
21
31
|
|
|
32
|
+
|
|
22
33
|
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
23
34
|
if response.status_code == 204:
|
|
24
35
|
return None
|
|
@@ -45,8 +56,9 @@ def sync_detailed(
|
|
|
45
56
|
record_id: str,
|
|
46
57
|
*,
|
|
47
58
|
client: Union[AuthenticatedClient, Client],
|
|
59
|
+
|
|
48
60
|
) -> Response[Any]:
|
|
49
|
-
"""
|
|
61
|
+
"""
|
|
50
62
|
Args:
|
|
51
63
|
record_id (str):
|
|
52
64
|
|
|
@@ -56,10 +68,12 @@ def sync_detailed(
|
|
|
56
68
|
|
|
57
69
|
Returns:
|
|
58
70
|
Response[Any]
|
|
59
|
-
|
|
71
|
+
"""
|
|
72
|
+
|
|
60
73
|
|
|
61
74
|
kwargs = _get_kwargs(
|
|
62
75
|
record_id=record_id,
|
|
76
|
+
|
|
63
77
|
)
|
|
64
78
|
|
|
65
79
|
response = client.get_httpx_client().request(
|
|
@@ -73,8 +87,9 @@ async def asyncio_detailed(
|
|
|
73
87
|
record_id: str,
|
|
74
88
|
*,
|
|
75
89
|
client: Union[AuthenticatedClient, Client],
|
|
90
|
+
|
|
76
91
|
) -> Response[Any]:
|
|
77
|
-
"""
|
|
92
|
+
"""
|
|
78
93
|
Args:
|
|
79
94
|
record_id (str):
|
|
80
95
|
|
|
@@ -84,12 +99,17 @@ async def asyncio_detailed(
|
|
|
84
99
|
|
|
85
100
|
Returns:
|
|
86
101
|
Response[Any]
|
|
87
|
-
|
|
102
|
+
"""
|
|
103
|
+
|
|
88
104
|
|
|
89
105
|
kwargs = _get_kwargs(
|
|
90
106
|
record_id=record_id,
|
|
107
|
+
|
|
91
108
|
)
|
|
92
109
|
|
|
93
|
-
response = await client.get_async_httpx_client().request(
|
|
110
|
+
response = await client.get_async_httpx_client().request(
|
|
111
|
+
**kwargs
|
|
112
|
+
)
|
|
94
113
|
|
|
95
114
|
return _build_response(client=client, response=response)
|
|
115
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ...client import AuthenticatedClient, Client
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
|
+
from ... import errors
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
record_id: str,
|
|
15
|
+
attachment_id: str,
|
|
16
|
+
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
_kwargs: dict[str, Any] = {
|
|
25
|
+
"method": "get",
|
|
26
|
+
"url": "/api/Records/{record_id}/attachments/{attachment_id}".format(record_id=record_id,attachment_id=attachment_id,),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
if client.raise_on_unexpected_status:
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
else:
|
|
41
|
+
return None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
45
|
+
return Response(
|
|
46
|
+
status_code=HTTPStatus(response.status_code),
|
|
47
|
+
content=response.content,
|
|
48
|
+
headers=response.headers,
|
|
49
|
+
parsed=_parse_response(client=client, response=response),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def sync_detailed(
|
|
54
|
+
record_id: str,
|
|
55
|
+
attachment_id: str,
|
|
56
|
+
*,
|
|
57
|
+
client: Union[AuthenticatedClient, Client],
|
|
58
|
+
|
|
59
|
+
) -> Response[Any]:
|
|
60
|
+
"""
|
|
61
|
+
Args:
|
|
62
|
+
record_id (str):
|
|
63
|
+
attachment_id (str):
|
|
64
|
+
|
|
65
|
+
Raises:
|
|
66
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
67
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
68
|
+
|
|
69
|
+
Returns:
|
|
70
|
+
Response[Any]
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
kwargs = _get_kwargs(
|
|
75
|
+
record_id=record_id,
|
|
76
|
+
attachment_id=attachment_id,
|
|
77
|
+
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
response = client.get_httpx_client().request(
|
|
81
|
+
**kwargs,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
return _build_response(client=client, response=response)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
async def asyncio_detailed(
|
|
88
|
+
record_id: str,
|
|
89
|
+
attachment_id: str,
|
|
90
|
+
*,
|
|
91
|
+
client: Union[AuthenticatedClient, Client],
|
|
92
|
+
|
|
93
|
+
) -> Response[Any]:
|
|
94
|
+
"""
|
|
95
|
+
Args:
|
|
96
|
+
record_id (str):
|
|
97
|
+
attachment_id (str):
|
|
98
|
+
|
|
99
|
+
Raises:
|
|
100
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
101
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
102
|
+
|
|
103
|
+
Returns:
|
|
104
|
+
Response[Any]
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
kwargs = _get_kwargs(
|
|
109
|
+
record_id=record_id,
|
|
110
|
+
attachment_id=attachment_id,
|
|
111
|
+
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
response = await client.get_async_httpx_client().request(
|
|
115
|
+
**kwargs
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
return _build_response(client=client, response=response)
|
|
119
|
+
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
|
-
from ... import errors
|
|
7
6
|
from ...client import AuthenticatedClient, Client
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
|
+
from ... import errors
|
|
9
|
+
|
|
8
10
|
from ...models.paginated_list_of_record_dto import PaginatedListOfRecordDto
|
|
9
|
-
from ...types import UNSET,
|
|
11
|
+
from ...types import UNSET, Unset
|
|
12
|
+
from typing import cast
|
|
13
|
+
from typing import cast, Union
|
|
14
|
+
from typing import Union
|
|
15
|
+
|
|
10
16
|
|
|
11
17
|
|
|
12
18
|
def _get_kwargs(
|
|
@@ -16,9 +22,13 @@ def _get_kwargs(
|
|
|
16
22
|
session_id: Union[None, Unset, str] = UNSET,
|
|
17
23
|
page_number: Union[Unset, int] = 1,
|
|
18
24
|
page_size: Union[Unset, int] = 10,
|
|
25
|
+
|
|
19
26
|
) -> dict[str, Any]:
|
|
20
27
|
headers: dict[str, Any] = {}
|
|
21
28
|
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
22
32
|
params: dict[str, Any] = {}
|
|
23
33
|
|
|
24
34
|
json_mini_id: Union[None, Unset, str]
|
|
@@ -39,8 +49,10 @@ def _get_kwargs(
|
|
|
39
49
|
|
|
40
50
|
params["pageSize"] = page_size
|
|
41
51
|
|
|
52
|
+
|
|
42
53
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
43
54
|
|
|
55
|
+
|
|
44
56
|
_kwargs: dict[str, Any] = {
|
|
45
57
|
"method": "post",
|
|
46
58
|
"url": "/api/Records/external",
|
|
@@ -49,18 +61,22 @@ def _get_kwargs(
|
|
|
49
61
|
|
|
50
62
|
_kwargs["json"] = body
|
|
51
63
|
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
52
67
|
headers["Content-Type"] = "application/json"
|
|
53
68
|
|
|
54
69
|
_kwargs["headers"] = headers
|
|
55
70
|
return _kwargs
|
|
56
71
|
|
|
57
72
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
) -> Optional[PaginatedListOfRecordDto]:
|
|
73
|
+
|
|
74
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[PaginatedListOfRecordDto]:
|
|
61
75
|
if response.status_code == 200:
|
|
62
76
|
response_200 = PaginatedListOfRecordDto.from_dict(response.json())
|
|
63
77
|
|
|
78
|
+
|
|
79
|
+
|
|
64
80
|
return response_200
|
|
65
81
|
|
|
66
82
|
if client.raise_on_unexpected_status:
|
|
@@ -69,9 +85,7 @@ def _parse_response(
|
|
|
69
85
|
return None
|
|
70
86
|
|
|
71
87
|
|
|
72
|
-
def _build_response(
|
|
73
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
74
|
-
) -> Response[PaginatedListOfRecordDto]:
|
|
88
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[PaginatedListOfRecordDto]:
|
|
75
89
|
return Response(
|
|
76
90
|
status_code=HTTPStatus(response.status_code),
|
|
77
91
|
content=response.content,
|
|
@@ -88,8 +102,9 @@ def sync_detailed(
|
|
|
88
102
|
session_id: Union[None, Unset, str] = UNSET,
|
|
89
103
|
page_number: Union[Unset, int] = 1,
|
|
90
104
|
page_size: Union[Unset, int] = 10,
|
|
105
|
+
|
|
91
106
|
) -> Response[PaginatedListOfRecordDto]:
|
|
92
|
-
"""
|
|
107
|
+
"""
|
|
93
108
|
Args:
|
|
94
109
|
mini_id (Union[None, Unset, str]):
|
|
95
110
|
session_id (Union[None, Unset, str]):
|
|
@@ -103,14 +118,16 @@ def sync_detailed(
|
|
|
103
118
|
|
|
104
119
|
Returns:
|
|
105
120
|
Response[PaginatedListOfRecordDto]
|
|
106
|
-
|
|
121
|
+
"""
|
|
122
|
+
|
|
107
123
|
|
|
108
124
|
kwargs = _get_kwargs(
|
|
109
125
|
body=body,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
mini_id=mini_id,
|
|
127
|
+
session_id=session_id,
|
|
128
|
+
page_number=page_number,
|
|
129
|
+
page_size=page_size,
|
|
130
|
+
|
|
114
131
|
)
|
|
115
132
|
|
|
116
133
|
response = client.get_httpx_client().request(
|
|
@@ -119,7 +136,6 @@ def sync_detailed(
|
|
|
119
136
|
|
|
120
137
|
return _build_response(client=client, response=response)
|
|
121
138
|
|
|
122
|
-
|
|
123
139
|
def sync(
|
|
124
140
|
*,
|
|
125
141
|
client: Union[AuthenticatedClient, Client],
|
|
@@ -128,8 +144,9 @@ def sync(
|
|
|
128
144
|
session_id: Union[None, Unset, str] = UNSET,
|
|
129
145
|
page_number: Union[Unset, int] = 1,
|
|
130
146
|
page_size: Union[Unset, int] = 10,
|
|
147
|
+
|
|
131
148
|
) -> Optional[PaginatedListOfRecordDto]:
|
|
132
|
-
"""
|
|
149
|
+
"""
|
|
133
150
|
Args:
|
|
134
151
|
mini_id (Union[None, Unset, str]):
|
|
135
152
|
session_id (Union[None, Unset, str]):
|
|
@@ -143,17 +160,18 @@ def sync(
|
|
|
143
160
|
|
|
144
161
|
Returns:
|
|
145
162
|
PaginatedListOfRecordDto
|
|
146
|
-
|
|
163
|
+
"""
|
|
164
|
+
|
|
147
165
|
|
|
148
166
|
return sync_detailed(
|
|
149
167
|
client=client,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
).parsed
|
|
168
|
+
body=body,
|
|
169
|
+
mini_id=mini_id,
|
|
170
|
+
session_id=session_id,
|
|
171
|
+
page_number=page_number,
|
|
172
|
+
page_size=page_size,
|
|
156
173
|
|
|
174
|
+
).parsed
|
|
157
175
|
|
|
158
176
|
async def asyncio_detailed(
|
|
159
177
|
*,
|
|
@@ -163,8 +181,9 @@ async def asyncio_detailed(
|
|
|
163
181
|
session_id: Union[None, Unset, str] = UNSET,
|
|
164
182
|
page_number: Union[Unset, int] = 1,
|
|
165
183
|
page_size: Union[Unset, int] = 10,
|
|
184
|
+
|
|
166
185
|
) -> Response[PaginatedListOfRecordDto]:
|
|
167
|
-
"""
|
|
186
|
+
"""
|
|
168
187
|
Args:
|
|
169
188
|
mini_id (Union[None, Unset, str]):
|
|
170
189
|
session_id (Union[None, Unset, str]):
|
|
@@ -178,21 +197,24 @@ async def asyncio_detailed(
|
|
|
178
197
|
|
|
179
198
|
Returns:
|
|
180
199
|
Response[PaginatedListOfRecordDto]
|
|
181
|
-
|
|
200
|
+
"""
|
|
201
|
+
|
|
182
202
|
|
|
183
203
|
kwargs = _get_kwargs(
|
|
184
204
|
body=body,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
205
|
+
mini_id=mini_id,
|
|
206
|
+
session_id=session_id,
|
|
207
|
+
page_number=page_number,
|
|
208
|
+
page_size=page_size,
|
|
209
|
+
|
|
189
210
|
)
|
|
190
211
|
|
|
191
|
-
response = await client.get_async_httpx_client().request(
|
|
212
|
+
response = await client.get_async_httpx_client().request(
|
|
213
|
+
**kwargs
|
|
214
|
+
)
|
|
192
215
|
|
|
193
216
|
return _build_response(client=client, response=response)
|
|
194
217
|
|
|
195
|
-
|
|
196
218
|
async def asyncio(
|
|
197
219
|
*,
|
|
198
220
|
client: Union[AuthenticatedClient, Client],
|
|
@@ -201,8 +223,9 @@ async def asyncio(
|
|
|
201
223
|
session_id: Union[None, Unset, str] = UNSET,
|
|
202
224
|
page_number: Union[Unset, int] = 1,
|
|
203
225
|
page_size: Union[Unset, int] = 10,
|
|
226
|
+
|
|
204
227
|
) -> Optional[PaginatedListOfRecordDto]:
|
|
205
|
-
"""
|
|
228
|
+
"""
|
|
206
229
|
Args:
|
|
207
230
|
mini_id (Union[None, Unset, str]):
|
|
208
231
|
session_id (Union[None, Unset, str]):
|
|
@@ -216,15 +239,15 @@ async def asyncio(
|
|
|
216
239
|
|
|
217
240
|
Returns:
|
|
218
241
|
PaginatedListOfRecordDto
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
).parsed
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
return (await asyncio_detailed(
|
|
246
|
+
client=client,
|
|
247
|
+
body=body,
|
|
248
|
+
mini_id=mini_id,
|
|
249
|
+
session_id=session_id,
|
|
250
|
+
page_number=page_number,
|
|
251
|
+
page_size=page_size,
|
|
252
|
+
|
|
253
|
+
)).parsed
|
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
|
-
from ... import errors
|
|
7
6
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...types import Response
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
|
+
from ... import errors
|
|
9
|
+
|
|
10
|
+
from typing import cast
|
|
11
|
+
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
def _get_kwargs(
|
|
12
15
|
record_id: str,
|
|
13
16
|
*,
|
|
14
17
|
body: list[str],
|
|
18
|
+
|
|
15
19
|
) -> dict[str, Any]:
|
|
16
20
|
headers: dict[str, Any] = {}
|
|
17
21
|
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
18
27
|
_kwargs: dict[str, Any] = {
|
|
19
28
|
"method": "delete",
|
|
20
|
-
"url":
|
|
29
|
+
"url": "/api/Records/{record_id}/attachments".format(record_id=record_id,),
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
_kwargs["json"] = body
|
|
24
33
|
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
25
37
|
headers["Content-Type"] = "application/json"
|
|
26
38
|
|
|
27
39
|
_kwargs["headers"] = headers
|
|
28
40
|
return _kwargs
|
|
29
41
|
|
|
30
42
|
|
|
43
|
+
|
|
31
44
|
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
32
45
|
if response.status_code == 204:
|
|
33
46
|
return None
|
|
@@ -55,8 +68,9 @@ def sync_detailed(
|
|
|
55
68
|
*,
|
|
56
69
|
client: Union[AuthenticatedClient, Client],
|
|
57
70
|
body: list[str],
|
|
71
|
+
|
|
58
72
|
) -> Response[Any]:
|
|
59
|
-
"""
|
|
73
|
+
"""
|
|
60
74
|
Args:
|
|
61
75
|
record_id (str):
|
|
62
76
|
body (list[str]):
|
|
@@ -67,11 +81,13 @@ def sync_detailed(
|
|
|
67
81
|
|
|
68
82
|
Returns:
|
|
69
83
|
Response[Any]
|
|
70
|
-
|
|
84
|
+
"""
|
|
85
|
+
|
|
71
86
|
|
|
72
87
|
kwargs = _get_kwargs(
|
|
73
88
|
record_id=record_id,
|
|
74
|
-
|
|
89
|
+
body=body,
|
|
90
|
+
|
|
75
91
|
)
|
|
76
92
|
|
|
77
93
|
response = client.get_httpx_client().request(
|
|
@@ -86,8 +102,9 @@ async def asyncio_detailed(
|
|
|
86
102
|
*,
|
|
87
103
|
client: Union[AuthenticatedClient, Client],
|
|
88
104
|
body: list[str],
|
|
105
|
+
|
|
89
106
|
) -> Response[Any]:
|
|
90
|
-
"""
|
|
107
|
+
"""
|
|
91
108
|
Args:
|
|
92
109
|
record_id (str):
|
|
93
110
|
body (list[str]):
|
|
@@ -98,13 +115,18 @@ async def asyncio_detailed(
|
|
|
98
115
|
|
|
99
116
|
Returns:
|
|
100
117
|
Response[Any]
|
|
101
|
-
|
|
118
|
+
"""
|
|
119
|
+
|
|
102
120
|
|
|
103
121
|
kwargs = _get_kwargs(
|
|
104
122
|
record_id=record_id,
|
|
105
|
-
|
|
123
|
+
body=body,
|
|
124
|
+
|
|
106
125
|
)
|
|
107
126
|
|
|
108
|
-
response = await client.get_async_httpx_client().request(
|
|
127
|
+
response = await client.get_async_httpx_client().request(
|
|
128
|
+
**kwargs
|
|
129
|
+
)
|
|
109
130
|
|
|
110
131
|
return _build_response(client=client, response=response)
|
|
132
|
+
|
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
|
-
from ... import errors
|
|
7
6
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...types import Response
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
|
+
from ... import errors
|
|
9
|
+
|
|
10
|
+
from typing import cast
|
|
11
|
+
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
def _get_kwargs(
|
|
12
15
|
record_id: str,
|
|
13
16
|
*,
|
|
14
17
|
body: list[str],
|
|
18
|
+
|
|
15
19
|
) -> dict[str, Any]:
|
|
16
20
|
headers: dict[str, Any] = {}
|
|
17
21
|
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
18
27
|
_kwargs: dict[str, Any] = {
|
|
19
28
|
"method": "delete",
|
|
20
|
-
"url":
|
|
29
|
+
"url": "/api/Records/{record_id}/relations".format(record_id=record_id,),
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
_kwargs["json"] = body
|
|
24
33
|
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
25
37
|
headers["Content-Type"] = "application/json"
|
|
26
38
|
|
|
27
39
|
_kwargs["headers"] = headers
|
|
28
40
|
return _kwargs
|
|
29
41
|
|
|
30
42
|
|
|
43
|
+
|
|
31
44
|
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
32
45
|
if response.status_code == 204:
|
|
33
46
|
return None
|
|
@@ -55,8 +68,9 @@ def sync_detailed(
|
|
|
55
68
|
*,
|
|
56
69
|
client: Union[AuthenticatedClient, Client],
|
|
57
70
|
body: list[str],
|
|
71
|
+
|
|
58
72
|
) -> Response[Any]:
|
|
59
|
-
"""
|
|
73
|
+
"""
|
|
60
74
|
Args:
|
|
61
75
|
record_id (str):
|
|
62
76
|
body (list[str]):
|
|
@@ -67,11 +81,13 @@ def sync_detailed(
|
|
|
67
81
|
|
|
68
82
|
Returns:
|
|
69
83
|
Response[Any]
|
|
70
|
-
|
|
84
|
+
"""
|
|
85
|
+
|
|
71
86
|
|
|
72
87
|
kwargs = _get_kwargs(
|
|
73
88
|
record_id=record_id,
|
|
74
|
-
|
|
89
|
+
body=body,
|
|
90
|
+
|
|
75
91
|
)
|
|
76
92
|
|
|
77
93
|
response = client.get_httpx_client().request(
|
|
@@ -86,8 +102,9 @@ async def asyncio_detailed(
|
|
|
86
102
|
*,
|
|
87
103
|
client: Union[AuthenticatedClient, Client],
|
|
88
104
|
body: list[str],
|
|
105
|
+
|
|
89
106
|
) -> Response[Any]:
|
|
90
|
-
"""
|
|
107
|
+
"""
|
|
91
108
|
Args:
|
|
92
109
|
record_id (str):
|
|
93
110
|
body (list[str]):
|
|
@@ -98,13 +115,18 @@ async def asyncio_detailed(
|
|
|
98
115
|
|
|
99
116
|
Returns:
|
|
100
117
|
Response[Any]
|
|
101
|
-
|
|
118
|
+
"""
|
|
119
|
+
|
|
102
120
|
|
|
103
121
|
kwargs = _get_kwargs(
|
|
104
122
|
record_id=record_id,
|
|
105
|
-
|
|
123
|
+
body=body,
|
|
124
|
+
|
|
106
125
|
)
|
|
107
126
|
|
|
108
|
-
response = await client.get_async_httpx_client().request(
|
|
127
|
+
response = await client.get_async_httpx_client().request(
|
|
128
|
+
**kwargs
|
|
129
|
+
)
|
|
109
130
|
|
|
110
131
|
return _build_response(client=client, response=response)
|
|
132
|
+
|