holder-python 0.2.6__py3-none-any.whl → 0.2.7__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.
- holder/__init__.py +2 -0
- holder/generated/api/default/get_projects_project_id_cards.py +20 -4
- holder/generated/api/default/get_projects_project_id_git_conflict_copies_copy_id_comparison.py +220 -0
- holder/generated/api/default/post_projects_project_id_git_conflict_copies_copy_id_resolution.py +247 -0
- holder/generated/api/default/post_projects_project_id_git_conflict_copies_copy_id_separation.py +245 -0
- holder/generated/api/default/post_projects_project_id_git_conflict_copies_copy_id_trash.py +269 -0
- holder/generated/models/__init__.py +40 -0
- holder/generated/models/card_summary.py +66 -0
- holder/generated/models/conflict_changed_line.py +44 -0
- holder/generated/models/conflict_comparison.py +132 -0
- holder/generated/models/conflict_comparison_response.py +76 -0
- holder/generated/models/conflict_copy.py +85 -0
- holder/generated/models/conflict_copy_backlink_source.py +60 -0
- holder/generated/models/conflict_copy_child_choice.py +44 -0
- holder/generated/models/conflict_copy_cleanup_review.py +169 -0
- holder/generated/models/conflict_copy_link_target.py +70 -0
- holder/generated/models/conflict_copy_milestone_choice.py +44 -0
- holder/generated/models/conflict_copy_tag_choice.py +44 -0
- holder/generated/models/conflict_resolution.py +60 -0
- holder/generated/models/conflict_resolution_result.py +62 -0
- holder/generated/models/conflict_resolution_result_response.py +78 -0
- holder/generated/models/conflict_version_edited_on.py +10 -0
- holder/generated/models/last_pull_changes.py +97 -0
- holder/generated/models/new_project.py +20 -0
- holder/generated/models/new_project_id_scheme.py +9 -0
- holder/generated/models/pull_changes.py +89 -0
- holder/generated/models/pull_phase.py +18 -2
- holder/generated/models/separate_conflict_copy_request.py +52 -0
- holder/generated/models/sync_state.py +61 -1
- holder/generated/models/trash_conflict_copy_request.py +189 -0
- holder/models/__init__.py +2 -0
- holder/models/project.py +4 -1
- holder/models/project_git.py +28 -0
- {holder_python-0.2.6.dist-info → holder_python-0.2.7.dist-info}/METADATA +7 -7
- {holder_python-0.2.6.dist-info → holder_python-0.2.7.dist-info}/RECORD +36 -12
- {holder_python-0.2.6.dist-info → holder_python-0.2.7.dist-info}/WHEEL +0 -0
holder/__init__.py
CHANGED
|
@@ -38,6 +38,7 @@ from .models import (
|
|
|
38
38
|
ProjectGit,
|
|
39
39
|
ProjectIntelligence,
|
|
40
40
|
Provider,
|
|
41
|
+
PullChanges,
|
|
41
42
|
PullPhase,
|
|
42
43
|
PushPhase,
|
|
43
44
|
RecoveryResult,
|
|
@@ -94,6 +95,7 @@ __all__ = [
|
|
|
94
95
|
"ProjectGit",
|
|
95
96
|
"ProjectIntelligence",
|
|
96
97
|
"Provider",
|
|
98
|
+
"PullChanges",
|
|
97
99
|
"PullEventStream",
|
|
98
100
|
"PullPhase",
|
|
99
101
|
"PushPhase",
|
|
@@ -143,7 +143,11 @@ def sync_detailed(
|
|
|
143
143
|
) -> Response[CardListItemPageResponse | ErrorResponse]:
|
|
144
144
|
"""Page through a project's live cards.
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
Tag result views use updated_desc, which puts the latest card update first and breaks ties by
|
|
147
|
+
descending card ID.
|
|
148
|
+
Rebuilding the projection from the same card files preserves this order.
|
|
149
|
+
|
|
150
|
+
Filters combine. Each page reads current data; iterating is not a snapshot.
|
|
147
151
|
|
|
148
152
|
Args:
|
|
149
153
|
project_id (str):
|
|
@@ -201,7 +205,11 @@ def sync(
|
|
|
201
205
|
) -> CardListItemPageResponse | ErrorResponse | None:
|
|
202
206
|
"""Page through a project's live cards.
|
|
203
207
|
|
|
204
|
-
|
|
208
|
+
Tag result views use updated_desc, which puts the latest card update first and breaks ties by
|
|
209
|
+
descending card ID.
|
|
210
|
+
Rebuilding the projection from the same card files preserves this order.
|
|
211
|
+
|
|
212
|
+
Filters combine. Each page reads current data; iterating is not a snapshot.
|
|
205
213
|
|
|
206
214
|
Args:
|
|
207
215
|
project_id (str):
|
|
@@ -254,7 +262,11 @@ async def asyncio_detailed(
|
|
|
254
262
|
) -> Response[CardListItemPageResponse | ErrorResponse]:
|
|
255
263
|
"""Page through a project's live cards.
|
|
256
264
|
|
|
257
|
-
|
|
265
|
+
Tag result views use updated_desc, which puts the latest card update first and breaks ties by
|
|
266
|
+
descending card ID.
|
|
267
|
+
Rebuilding the projection from the same card files preserves this order.
|
|
268
|
+
|
|
269
|
+
Filters combine. Each page reads current data; iterating is not a snapshot.
|
|
258
270
|
|
|
259
271
|
Args:
|
|
260
272
|
project_id (str):
|
|
@@ -310,7 +322,11 @@ async def asyncio(
|
|
|
310
322
|
) -> CardListItemPageResponse | ErrorResponse | None:
|
|
311
323
|
"""Page through a project's live cards.
|
|
312
324
|
|
|
313
|
-
|
|
325
|
+
Tag result views use updated_desc, which puts the latest card update first and breaks ties by
|
|
326
|
+
descending card ID.
|
|
327
|
+
Rebuilding the projection from the same card files preserves this order.
|
|
328
|
+
|
|
329
|
+
Filters combine. Each page reads current data; iterating is not a snapshot.
|
|
314
330
|
|
|
315
331
|
Args:
|
|
316
332
|
project_id (str):
|
holder/generated/api/default/get_projects_project_id_git_conflict_copies_copy_id_comparison.py
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.conflict_comparison_response import ConflictComparisonResponse
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
project_id: str,
|
|
16
|
+
copy_id: str,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
|
|
19
|
+
_kwargs: dict[str, Any] = {
|
|
20
|
+
"method": "get",
|
|
21
|
+
"url": "/projects/{project_id}/git/conflict-copies/{copy_id}/comparison".format(
|
|
22
|
+
project_id=quote(str(project_id), safe=""),
|
|
23
|
+
copy_id=quote(str(copy_id), safe=""),
|
|
24
|
+
),
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return _kwargs
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _parse_response(
|
|
31
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
32
|
+
) -> ConflictComparisonResponse | ErrorResponse | None:
|
|
33
|
+
if response.status_code == 200:
|
|
34
|
+
response_200 = ConflictComparisonResponse.from_dict(response.json())
|
|
35
|
+
|
|
36
|
+
return response_200
|
|
37
|
+
|
|
38
|
+
if response.status_code == 400:
|
|
39
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
40
|
+
|
|
41
|
+
return response_400
|
|
42
|
+
|
|
43
|
+
if response.status_code == 401:
|
|
44
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_401
|
|
47
|
+
|
|
48
|
+
if response.status_code == 404:
|
|
49
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_404
|
|
52
|
+
|
|
53
|
+
if response.status_code == 409:
|
|
54
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
55
|
+
|
|
56
|
+
return response_409
|
|
57
|
+
|
|
58
|
+
if response.status_code == 500:
|
|
59
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
60
|
+
|
|
61
|
+
return response_500
|
|
62
|
+
|
|
63
|
+
if response.status_code == 503:
|
|
64
|
+
response_503 = ErrorResponse.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_503
|
|
67
|
+
|
|
68
|
+
if client.raise_on_unexpected_status:
|
|
69
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
70
|
+
else:
|
|
71
|
+
return None
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def _build_response(
|
|
75
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
76
|
+
) -> Response[ConflictComparisonResponse | ErrorResponse]:
|
|
77
|
+
return Response(
|
|
78
|
+
status_code=HTTPStatus(response.status_code),
|
|
79
|
+
content=response.content,
|
|
80
|
+
headers=response.headers,
|
|
81
|
+
parsed=_parse_response(client=client, response=response),
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync_detailed(
|
|
86
|
+
project_id: str,
|
|
87
|
+
copy_id: str,
|
|
88
|
+
*,
|
|
89
|
+
client: AuthenticatedClient | Client,
|
|
90
|
+
) -> Response[ConflictComparisonResponse | ErrorResponse]:
|
|
91
|
+
"""Compare a preserved copy with its recorded original.
|
|
92
|
+
|
|
93
|
+
Reads both saved cards together. A missing association, an original or copy in Trash, or a card
|
|
94
|
+
that no longer exists is NotFound. A pair changed during the read is Conflict. The operation does
|
|
95
|
+
not
|
|
96
|
+
change either card.
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
project_id (str):
|
|
100
|
+
copy_id (str):
|
|
101
|
+
|
|
102
|
+
Raises:
|
|
103
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
104
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
Response[ConflictComparisonResponse | ErrorResponse]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
kwargs = _get_kwargs(
|
|
111
|
+
project_id=project_id,
|
|
112
|
+
copy_id=copy_id,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
response = client.get_httpx_client().request(
|
|
116
|
+
**kwargs,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
return _build_response(client=client, response=response)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def sync(
|
|
123
|
+
project_id: str,
|
|
124
|
+
copy_id: str,
|
|
125
|
+
*,
|
|
126
|
+
client: AuthenticatedClient | Client,
|
|
127
|
+
) -> ConflictComparisonResponse | ErrorResponse | None:
|
|
128
|
+
"""Compare a preserved copy with its recorded original.
|
|
129
|
+
|
|
130
|
+
Reads both saved cards together. A missing association, an original or copy in Trash, or a card
|
|
131
|
+
that no longer exists is NotFound. A pair changed during the read is Conflict. The operation does
|
|
132
|
+
not
|
|
133
|
+
change either card.
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
project_id (str):
|
|
137
|
+
copy_id (str):
|
|
138
|
+
|
|
139
|
+
Raises:
|
|
140
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
141
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
142
|
+
|
|
143
|
+
Returns:
|
|
144
|
+
ConflictComparisonResponse | ErrorResponse
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
return sync_detailed(
|
|
148
|
+
project_id=project_id,
|
|
149
|
+
copy_id=copy_id,
|
|
150
|
+
client=client,
|
|
151
|
+
).parsed
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def asyncio_detailed(
|
|
155
|
+
project_id: str,
|
|
156
|
+
copy_id: str,
|
|
157
|
+
*,
|
|
158
|
+
client: AuthenticatedClient | Client,
|
|
159
|
+
) -> Response[ConflictComparisonResponse | ErrorResponse]:
|
|
160
|
+
"""Compare a preserved copy with its recorded original.
|
|
161
|
+
|
|
162
|
+
Reads both saved cards together. A missing association, an original or copy in Trash, or a card
|
|
163
|
+
that no longer exists is NotFound. A pair changed during the read is Conflict. The operation does
|
|
164
|
+
not
|
|
165
|
+
change either card.
|
|
166
|
+
|
|
167
|
+
Args:
|
|
168
|
+
project_id (str):
|
|
169
|
+
copy_id (str):
|
|
170
|
+
|
|
171
|
+
Raises:
|
|
172
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
173
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
174
|
+
|
|
175
|
+
Returns:
|
|
176
|
+
Response[ConflictComparisonResponse | ErrorResponse]
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
kwargs = _get_kwargs(
|
|
180
|
+
project_id=project_id,
|
|
181
|
+
copy_id=copy_id,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
185
|
+
|
|
186
|
+
return _build_response(client=client, response=response)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
async def asyncio(
|
|
190
|
+
project_id: str,
|
|
191
|
+
copy_id: str,
|
|
192
|
+
*,
|
|
193
|
+
client: AuthenticatedClient | Client,
|
|
194
|
+
) -> ConflictComparisonResponse | ErrorResponse | None:
|
|
195
|
+
"""Compare a preserved copy with its recorded original.
|
|
196
|
+
|
|
197
|
+
Reads both saved cards together. A missing association, an original or copy in Trash, or a card
|
|
198
|
+
that no longer exists is NotFound. A pair changed during the read is Conflict. The operation does
|
|
199
|
+
not
|
|
200
|
+
change either card.
|
|
201
|
+
|
|
202
|
+
Args:
|
|
203
|
+
project_id (str):
|
|
204
|
+
copy_id (str):
|
|
205
|
+
|
|
206
|
+
Raises:
|
|
207
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
208
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
ConflictComparisonResponse | ErrorResponse
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
return (
|
|
215
|
+
await asyncio_detailed(
|
|
216
|
+
project_id=project_id,
|
|
217
|
+
copy_id=copy_id,
|
|
218
|
+
client=client,
|
|
219
|
+
)
|
|
220
|
+
).parsed
|
holder/generated/api/default/post_projects_project_id_git_conflict_copies_copy_id_resolution.py
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.conflict_resolution import ConflictResolution
|
|
10
|
+
from ...models.conflict_resolution_result_response import (
|
|
11
|
+
ConflictResolutionResultResponse,
|
|
12
|
+
)
|
|
13
|
+
from ...models.error_response import ErrorResponse
|
|
14
|
+
from ...types import Response
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _get_kwargs(
|
|
18
|
+
project_id: str,
|
|
19
|
+
copy_id: str,
|
|
20
|
+
*,
|
|
21
|
+
body: ConflictResolution,
|
|
22
|
+
) -> dict[str, Any]:
|
|
23
|
+
headers: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
_kwargs: dict[str, Any] = {
|
|
26
|
+
"method": "post",
|
|
27
|
+
"url": "/projects/{project_id}/git/conflict-copies/{copy_id}/resolution".format(
|
|
28
|
+
project_id=quote(str(project_id), safe=""),
|
|
29
|
+
copy_id=quote(str(copy_id), safe=""),
|
|
30
|
+
),
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
_kwargs["json"] = body.to_dict()
|
|
34
|
+
|
|
35
|
+
headers["Content-Type"] = "application/json"
|
|
36
|
+
|
|
37
|
+
_kwargs["headers"] = headers
|
|
38
|
+
return _kwargs
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _parse_response(
|
|
42
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
43
|
+
) -> ConflictResolutionResultResponse | ErrorResponse | None:
|
|
44
|
+
if response.status_code == 200:
|
|
45
|
+
response_200 = ConflictResolutionResultResponse.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_200
|
|
48
|
+
|
|
49
|
+
if response.status_code == 400:
|
|
50
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_400
|
|
53
|
+
|
|
54
|
+
if response.status_code == 401:
|
|
55
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
56
|
+
|
|
57
|
+
return response_401
|
|
58
|
+
|
|
59
|
+
if response.status_code == 404:
|
|
60
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_404
|
|
63
|
+
|
|
64
|
+
if response.status_code == 409:
|
|
65
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
66
|
+
|
|
67
|
+
return response_409
|
|
68
|
+
|
|
69
|
+
if response.status_code == 500:
|
|
70
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
71
|
+
|
|
72
|
+
return response_500
|
|
73
|
+
|
|
74
|
+
if response.status_code == 503:
|
|
75
|
+
response_503 = ErrorResponse.from_dict(response.json())
|
|
76
|
+
|
|
77
|
+
return response_503
|
|
78
|
+
|
|
79
|
+
if client.raise_on_unexpected_status:
|
|
80
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
81
|
+
else:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _build_response(
|
|
86
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
87
|
+
) -> Response[ConflictResolutionResultResponse | ErrorResponse]:
|
|
88
|
+
return Response(
|
|
89
|
+
status_code=HTTPStatus(response.status_code),
|
|
90
|
+
content=response.content,
|
|
91
|
+
headers=response.headers,
|
|
92
|
+
parsed=_parse_response(client=client, response=response),
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def sync_detailed(
|
|
97
|
+
project_id: str,
|
|
98
|
+
copy_id: str,
|
|
99
|
+
*,
|
|
100
|
+
client: AuthenticatedClient | Client,
|
|
101
|
+
body: ConflictResolution,
|
|
102
|
+
) -> Response[ConflictResolutionResultResponse | ErrorResponse]:
|
|
103
|
+
"""Save reviewed text to the original card without changing the preserved copy.
|
|
104
|
+
|
|
105
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
106
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. Changes
|
|
107
|
+
to the title and content make a new Git commit. The original's identity, hierarchy, links and
|
|
108
|
+
milestones are retained. Saving the existing title and content makes no commit. The result
|
|
109
|
+
includes a review for optional cleanup of the preserved copy.
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
project_id (str):
|
|
113
|
+
copy_id (str):
|
|
114
|
+
body (ConflictResolution): Title and body to keep on the original card.
|
|
115
|
+
|
|
116
|
+
Raises:
|
|
117
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
119
|
+
|
|
120
|
+
Returns:
|
|
121
|
+
Response[ConflictResolutionResultResponse | ErrorResponse]
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
kwargs = _get_kwargs(
|
|
125
|
+
project_id=project_id,
|
|
126
|
+
copy_id=copy_id,
|
|
127
|
+
body=body,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
response = client.get_httpx_client().request(
|
|
131
|
+
**kwargs,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
return _build_response(client=client, response=response)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def sync(
|
|
138
|
+
project_id: str,
|
|
139
|
+
copy_id: str,
|
|
140
|
+
*,
|
|
141
|
+
client: AuthenticatedClient | Client,
|
|
142
|
+
body: ConflictResolution,
|
|
143
|
+
) -> ConflictResolutionResultResponse | ErrorResponse | None:
|
|
144
|
+
"""Save reviewed text to the original card without changing the preserved copy.
|
|
145
|
+
|
|
146
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
147
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. Changes
|
|
148
|
+
to the title and content make a new Git commit. The original's identity, hierarchy, links and
|
|
149
|
+
milestones are retained. Saving the existing title and content makes no commit. The result
|
|
150
|
+
includes a review for optional cleanup of the preserved copy.
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
project_id (str):
|
|
154
|
+
copy_id (str):
|
|
155
|
+
body (ConflictResolution): Title and body to keep on the original card.
|
|
156
|
+
|
|
157
|
+
Raises:
|
|
158
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
159
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
ConflictResolutionResultResponse | ErrorResponse
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
return sync_detailed(
|
|
166
|
+
project_id=project_id,
|
|
167
|
+
copy_id=copy_id,
|
|
168
|
+
client=client,
|
|
169
|
+
body=body,
|
|
170
|
+
).parsed
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
async def asyncio_detailed(
|
|
174
|
+
project_id: str,
|
|
175
|
+
copy_id: str,
|
|
176
|
+
*,
|
|
177
|
+
client: AuthenticatedClient | Client,
|
|
178
|
+
body: ConflictResolution,
|
|
179
|
+
) -> Response[ConflictResolutionResultResponse | ErrorResponse]:
|
|
180
|
+
"""Save reviewed text to the original card without changing the preserved copy.
|
|
181
|
+
|
|
182
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
183
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. Changes
|
|
184
|
+
to the title and content make a new Git commit. The original's identity, hierarchy, links and
|
|
185
|
+
milestones are retained. Saving the existing title and content makes no commit. The result
|
|
186
|
+
includes a review for optional cleanup of the preserved copy.
|
|
187
|
+
|
|
188
|
+
Args:
|
|
189
|
+
project_id (str):
|
|
190
|
+
copy_id (str):
|
|
191
|
+
body (ConflictResolution): Title and body to keep on the original card.
|
|
192
|
+
|
|
193
|
+
Raises:
|
|
194
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
195
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
Response[ConflictResolutionResultResponse | ErrorResponse]
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
kwargs = _get_kwargs(
|
|
202
|
+
project_id=project_id,
|
|
203
|
+
copy_id=copy_id,
|
|
204
|
+
body=body,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
208
|
+
|
|
209
|
+
return _build_response(client=client, response=response)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
async def asyncio(
|
|
213
|
+
project_id: str,
|
|
214
|
+
copy_id: str,
|
|
215
|
+
*,
|
|
216
|
+
client: AuthenticatedClient | Client,
|
|
217
|
+
body: ConflictResolution,
|
|
218
|
+
) -> ConflictResolutionResultResponse | ErrorResponse | None:
|
|
219
|
+
"""Save reviewed text to the original card without changing the preserved copy.
|
|
220
|
+
|
|
221
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
222
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. Changes
|
|
223
|
+
to the title and content make a new Git commit. The original's identity, hierarchy, links and
|
|
224
|
+
milestones are retained. Saving the existing title and content makes no commit. The result
|
|
225
|
+
includes a review for optional cleanup of the preserved copy.
|
|
226
|
+
|
|
227
|
+
Args:
|
|
228
|
+
project_id (str):
|
|
229
|
+
copy_id (str):
|
|
230
|
+
body (ConflictResolution): Title and body to keep on the original card.
|
|
231
|
+
|
|
232
|
+
Raises:
|
|
233
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
234
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
235
|
+
|
|
236
|
+
Returns:
|
|
237
|
+
ConflictResolutionResultResponse | ErrorResponse
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
return (
|
|
241
|
+
await asyncio_detailed(
|
|
242
|
+
project_id=project_id,
|
|
243
|
+
copy_id=copy_id,
|
|
244
|
+
client=client,
|
|
245
|
+
body=body,
|
|
246
|
+
)
|
|
247
|
+
).parsed
|