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/generated/api/default/post_projects_project_id_git_conflict_copies_copy_id_separation.py
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
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.card_response import CardResponse
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...models.separate_conflict_copy_request import SeparateConflictCopyRequest
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
project_id: str,
|
|
17
|
+
copy_id: str,
|
|
18
|
+
*,
|
|
19
|
+
body: SeparateConflictCopyRequest,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
|
|
23
|
+
_kwargs: dict[str, Any] = {
|
|
24
|
+
"method": "post",
|
|
25
|
+
"url": "/projects/{project_id}/git/conflict-copies/{copy_id}/separation".format(
|
|
26
|
+
project_id=quote(str(project_id), safe=""),
|
|
27
|
+
copy_id=quote(str(copy_id), safe=""),
|
|
28
|
+
),
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
32
|
+
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
|
|
35
|
+
_kwargs["headers"] = headers
|
|
36
|
+
return _kwargs
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _parse_response(
|
|
40
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
41
|
+
) -> CardResponse | ErrorResponse | None:
|
|
42
|
+
if response.status_code == 200:
|
|
43
|
+
response_200 = CardResponse.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_200
|
|
46
|
+
|
|
47
|
+
if response.status_code == 400:
|
|
48
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_400
|
|
51
|
+
|
|
52
|
+
if response.status_code == 401:
|
|
53
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_401
|
|
56
|
+
|
|
57
|
+
if response.status_code == 404:
|
|
58
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_404
|
|
61
|
+
|
|
62
|
+
if response.status_code == 409:
|
|
63
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
64
|
+
|
|
65
|
+
return response_409
|
|
66
|
+
|
|
67
|
+
if response.status_code == 500:
|
|
68
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_500
|
|
71
|
+
|
|
72
|
+
if response.status_code == 503:
|
|
73
|
+
response_503 = ErrorResponse.from_dict(response.json())
|
|
74
|
+
|
|
75
|
+
return response_503
|
|
76
|
+
|
|
77
|
+
if client.raise_on_unexpected_status:
|
|
78
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
79
|
+
else:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _build_response(
|
|
84
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
85
|
+
) -> Response[CardResponse | ErrorResponse]:
|
|
86
|
+
return Response(
|
|
87
|
+
status_code=HTTPStatus(response.status_code),
|
|
88
|
+
content=response.content,
|
|
89
|
+
headers=response.headers,
|
|
90
|
+
parsed=_parse_response(client=client, response=response),
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def sync_detailed(
|
|
95
|
+
project_id: str,
|
|
96
|
+
copy_id: str,
|
|
97
|
+
*,
|
|
98
|
+
client: AuthenticatedClient | Client,
|
|
99
|
+
body: SeparateConflictCopyRequest,
|
|
100
|
+
) -> Response[CardResponse | ErrorResponse]:
|
|
101
|
+
"""Keep a preserved copy as an ordinary card instead of resolving it into the original.
|
|
102
|
+
|
|
103
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
104
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. The copy takes
|
|
105
|
+
the new title and loses its recorded association with the original, in one Git commit, so it is
|
|
106
|
+
no longer listed as a conflict copy. Both cards keep their content, place, links and milestones.
|
|
107
|
+
|
|
108
|
+
Args:
|
|
109
|
+
project_id (str):
|
|
110
|
+
copy_id (str):
|
|
111
|
+
body (SeparateConflictCopyRequest): The reviewed pair and the title the preserved copy
|
|
112
|
+
keeps as a card of its own.
|
|
113
|
+
|
|
114
|
+
Raises:
|
|
115
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
116
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
Response[CardResponse | ErrorResponse]
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
kwargs = _get_kwargs(
|
|
123
|
+
project_id=project_id,
|
|
124
|
+
copy_id=copy_id,
|
|
125
|
+
body=body,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
response = client.get_httpx_client().request(
|
|
129
|
+
**kwargs,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
return _build_response(client=client, response=response)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def sync(
|
|
136
|
+
project_id: str,
|
|
137
|
+
copy_id: str,
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient | Client,
|
|
140
|
+
body: SeparateConflictCopyRequest,
|
|
141
|
+
) -> CardResponse | ErrorResponse | None:
|
|
142
|
+
"""Keep a preserved copy as an ordinary card instead of resolving it into the original.
|
|
143
|
+
|
|
144
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
145
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. The copy takes
|
|
146
|
+
the new title and loses its recorded association with the original, in one Git commit, so it is
|
|
147
|
+
no longer listed as a conflict copy. Both cards keep their content, place, links and milestones.
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
project_id (str):
|
|
151
|
+
copy_id (str):
|
|
152
|
+
body (SeparateConflictCopyRequest): The reviewed pair and the title the preserved copy
|
|
153
|
+
keeps as a card of its own.
|
|
154
|
+
|
|
155
|
+
Raises:
|
|
156
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
157
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
158
|
+
|
|
159
|
+
Returns:
|
|
160
|
+
CardResponse | ErrorResponse
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
return sync_detailed(
|
|
164
|
+
project_id=project_id,
|
|
165
|
+
copy_id=copy_id,
|
|
166
|
+
client=client,
|
|
167
|
+
body=body,
|
|
168
|
+
).parsed
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
async def asyncio_detailed(
|
|
172
|
+
project_id: str,
|
|
173
|
+
copy_id: str,
|
|
174
|
+
*,
|
|
175
|
+
client: AuthenticatedClient | Client,
|
|
176
|
+
body: SeparateConflictCopyRequest,
|
|
177
|
+
) -> Response[CardResponse | ErrorResponse]:
|
|
178
|
+
"""Keep a preserved copy as an ordinary card instead of resolving it into the original.
|
|
179
|
+
|
|
180
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
181
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. The copy takes
|
|
182
|
+
the new title and loses its recorded association with the original, in one Git commit, so it is
|
|
183
|
+
no longer listed as a conflict copy. Both cards keep their content, place, links and milestones.
|
|
184
|
+
|
|
185
|
+
Args:
|
|
186
|
+
project_id (str):
|
|
187
|
+
copy_id (str):
|
|
188
|
+
body (SeparateConflictCopyRequest): The reviewed pair and the title the preserved copy
|
|
189
|
+
keeps as a card of its own.
|
|
190
|
+
|
|
191
|
+
Raises:
|
|
192
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
193
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
194
|
+
|
|
195
|
+
Returns:
|
|
196
|
+
Response[CardResponse | ErrorResponse]
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = _get_kwargs(
|
|
200
|
+
project_id=project_id,
|
|
201
|
+
copy_id=copy_id,
|
|
202
|
+
body=body,
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
206
|
+
|
|
207
|
+
return _build_response(client=client, response=response)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
async def asyncio(
|
|
211
|
+
project_id: str,
|
|
212
|
+
copy_id: str,
|
|
213
|
+
*,
|
|
214
|
+
client: AuthenticatedClient | Client,
|
|
215
|
+
body: SeparateConflictCopyRequest,
|
|
216
|
+
) -> CardResponse | ErrorResponse | None:
|
|
217
|
+
"""Keep a preserved copy as an ordinary card instead of resolving it into the original.
|
|
218
|
+
|
|
219
|
+
Holder verifies the token against both live cards before changing anything. A stale token is
|
|
220
|
+
Conflict. A missing association or a card that is missing or in Trash is NotFound. The copy takes
|
|
221
|
+
the new title and loses its recorded association with the original, in one Git commit, so it is
|
|
222
|
+
no longer listed as a conflict copy. Both cards keep their content, place, links and milestones.
|
|
223
|
+
|
|
224
|
+
Args:
|
|
225
|
+
project_id (str):
|
|
226
|
+
copy_id (str):
|
|
227
|
+
body (SeparateConflictCopyRequest): The reviewed pair and the title the preserved copy
|
|
228
|
+
keeps as a card of its own.
|
|
229
|
+
|
|
230
|
+
Raises:
|
|
231
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
232
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
233
|
+
|
|
234
|
+
Returns:
|
|
235
|
+
CardResponse | ErrorResponse
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
return (
|
|
239
|
+
await asyncio_detailed(
|
|
240
|
+
project_id=project_id,
|
|
241
|
+
copy_id=copy_id,
|
|
242
|
+
client=client,
|
|
243
|
+
body=body,
|
|
244
|
+
)
|
|
245
|
+
).parsed
|
|
@@ -0,0 +1,269 @@
|
|
|
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.card_metadata_response import CardMetadataResponse
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...models.trash_conflict_copy_request import TrashConflictCopyRequest
|
|
12
|
+
from ...types import Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
project_id: str,
|
|
17
|
+
copy_id: str,
|
|
18
|
+
*,
|
|
19
|
+
body: TrashConflictCopyRequest,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
|
|
23
|
+
_kwargs: dict[str, Any] = {
|
|
24
|
+
"method": "post",
|
|
25
|
+
"url": "/projects/{project_id}/git/conflict-copies/{copy_id}/trash".format(
|
|
26
|
+
project_id=quote(str(project_id), safe=""),
|
|
27
|
+
copy_id=quote(str(copy_id), safe=""),
|
|
28
|
+
),
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_kwargs["json"] = body.to_dict()
|
|
32
|
+
|
|
33
|
+
headers["Content-Type"] = "application/json"
|
|
34
|
+
|
|
35
|
+
_kwargs["headers"] = headers
|
|
36
|
+
return _kwargs
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _parse_response(
|
|
40
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
41
|
+
) -> CardMetadataResponse | ErrorResponse | None:
|
|
42
|
+
if response.status_code == 200:
|
|
43
|
+
response_200 = CardMetadataResponse.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_200
|
|
46
|
+
|
|
47
|
+
if response.status_code == 400:
|
|
48
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_400
|
|
51
|
+
|
|
52
|
+
if response.status_code == 401:
|
|
53
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_401
|
|
56
|
+
|
|
57
|
+
if response.status_code == 404:
|
|
58
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_404
|
|
61
|
+
|
|
62
|
+
if response.status_code == 409:
|
|
63
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
64
|
+
|
|
65
|
+
return response_409
|
|
66
|
+
|
|
67
|
+
if response.status_code == 500:
|
|
68
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_500
|
|
71
|
+
|
|
72
|
+
if response.status_code == 503:
|
|
73
|
+
response_503 = ErrorResponse.from_dict(response.json())
|
|
74
|
+
|
|
75
|
+
return response_503
|
|
76
|
+
|
|
77
|
+
if client.raise_on_unexpected_status:
|
|
78
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
79
|
+
else:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _build_response(
|
|
84
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
85
|
+
) -> Response[CardMetadataResponse | ErrorResponse]:
|
|
86
|
+
return Response(
|
|
87
|
+
status_code=HTTPStatus(response.status_code),
|
|
88
|
+
content=response.content,
|
|
89
|
+
headers=response.headers,
|
|
90
|
+
parsed=_parse_response(client=client, response=response),
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def sync_detailed(
|
|
95
|
+
project_id: str,
|
|
96
|
+
copy_id: str,
|
|
97
|
+
*,
|
|
98
|
+
client: AuthenticatedClient | Client,
|
|
99
|
+
body: TrashConflictCopyRequest,
|
|
100
|
+
) -> Response[CardMetadataResponse | ErrorResponse]:
|
|
101
|
+
"""Move a reviewed conflict copy to Trash after choosing a result.
|
|
102
|
+
|
|
103
|
+
Holder verifies the cleanup token against both live cards and the reviewed effects.
|
|
104
|
+
A stale token, cleanup that would move the original, or a detail to carry over that the review
|
|
105
|
+
did not list is Conflict. A missing association or a card missing or in Trash is NotFound.
|
|
106
|
+
Holder first carries the chosen details over to the original: links, milestones and tags are
|
|
107
|
+
added to it, chosen children move under it, and chosen card links to the copy point at it
|
|
108
|
+
instead. Each is its own change. The original is otherwise untouched. The copy can be restored,
|
|
109
|
+
and its other live children move up a level.
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
project_id (str):
|
|
113
|
+
copy_id (str):
|
|
114
|
+
body (TrashConflictCopyRequest): Confirmation of the cleanup effects returned when the
|
|
115
|
+
resolution was saved, and which of the copy's own
|
|
116
|
+
details to carry over to the original first. Everything named must be in the reviewed
|
|
117
|
+
cleanup; anything not
|
|
118
|
+
carried over stays with the copy in Trash.
|
|
119
|
+
|
|
120
|
+
Raises:
|
|
121
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
122
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
123
|
+
|
|
124
|
+
Returns:
|
|
125
|
+
Response[CardMetadataResponse | ErrorResponse]
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
kwargs = _get_kwargs(
|
|
129
|
+
project_id=project_id,
|
|
130
|
+
copy_id=copy_id,
|
|
131
|
+
body=body,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
response = client.get_httpx_client().request(
|
|
135
|
+
**kwargs,
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
return _build_response(client=client, response=response)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def sync(
|
|
142
|
+
project_id: str,
|
|
143
|
+
copy_id: str,
|
|
144
|
+
*,
|
|
145
|
+
client: AuthenticatedClient | Client,
|
|
146
|
+
body: TrashConflictCopyRequest,
|
|
147
|
+
) -> CardMetadataResponse | ErrorResponse | None:
|
|
148
|
+
"""Move a reviewed conflict copy to Trash after choosing a result.
|
|
149
|
+
|
|
150
|
+
Holder verifies the cleanup token against both live cards and the reviewed effects.
|
|
151
|
+
A stale token, cleanup that would move the original, or a detail to carry over that the review
|
|
152
|
+
did not list is Conflict. A missing association or a card missing or in Trash is NotFound.
|
|
153
|
+
Holder first carries the chosen details over to the original: links, milestones and tags are
|
|
154
|
+
added to it, chosen children move under it, and chosen card links to the copy point at it
|
|
155
|
+
instead. Each is its own change. The original is otherwise untouched. The copy can be restored,
|
|
156
|
+
and its other live children move up a level.
|
|
157
|
+
|
|
158
|
+
Args:
|
|
159
|
+
project_id (str):
|
|
160
|
+
copy_id (str):
|
|
161
|
+
body (TrashConflictCopyRequest): Confirmation of the cleanup effects returned when the
|
|
162
|
+
resolution was saved, and which of the copy's own
|
|
163
|
+
details to carry over to the original first. Everything named must be in the reviewed
|
|
164
|
+
cleanup; anything not
|
|
165
|
+
carried over stays with the copy in Trash.
|
|
166
|
+
|
|
167
|
+
Raises:
|
|
168
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
169
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
170
|
+
|
|
171
|
+
Returns:
|
|
172
|
+
CardMetadataResponse | ErrorResponse
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
return sync_detailed(
|
|
176
|
+
project_id=project_id,
|
|
177
|
+
copy_id=copy_id,
|
|
178
|
+
client=client,
|
|
179
|
+
body=body,
|
|
180
|
+
).parsed
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
async def asyncio_detailed(
|
|
184
|
+
project_id: str,
|
|
185
|
+
copy_id: str,
|
|
186
|
+
*,
|
|
187
|
+
client: AuthenticatedClient | Client,
|
|
188
|
+
body: TrashConflictCopyRequest,
|
|
189
|
+
) -> Response[CardMetadataResponse | ErrorResponse]:
|
|
190
|
+
"""Move a reviewed conflict copy to Trash after choosing a result.
|
|
191
|
+
|
|
192
|
+
Holder verifies the cleanup token against both live cards and the reviewed effects.
|
|
193
|
+
A stale token, cleanup that would move the original, or a detail to carry over that the review
|
|
194
|
+
did not list is Conflict. A missing association or a card missing or in Trash is NotFound.
|
|
195
|
+
Holder first carries the chosen details over to the original: links, milestones and tags are
|
|
196
|
+
added to it, chosen children move under it, and chosen card links to the copy point at it
|
|
197
|
+
instead. Each is its own change. The original is otherwise untouched. The copy can be restored,
|
|
198
|
+
and its other live children move up a level.
|
|
199
|
+
|
|
200
|
+
Args:
|
|
201
|
+
project_id (str):
|
|
202
|
+
copy_id (str):
|
|
203
|
+
body (TrashConflictCopyRequest): Confirmation of the cleanup effects returned when the
|
|
204
|
+
resolution was saved, and which of the copy's own
|
|
205
|
+
details to carry over to the original first. Everything named must be in the reviewed
|
|
206
|
+
cleanup; anything not
|
|
207
|
+
carried over stays with the copy in Trash.
|
|
208
|
+
|
|
209
|
+
Raises:
|
|
210
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
211
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
212
|
+
|
|
213
|
+
Returns:
|
|
214
|
+
Response[CardMetadataResponse | ErrorResponse]
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = _get_kwargs(
|
|
218
|
+
project_id=project_id,
|
|
219
|
+
copy_id=copy_id,
|
|
220
|
+
body=body,
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
224
|
+
|
|
225
|
+
return _build_response(client=client, response=response)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
async def asyncio(
|
|
229
|
+
project_id: str,
|
|
230
|
+
copy_id: str,
|
|
231
|
+
*,
|
|
232
|
+
client: AuthenticatedClient | Client,
|
|
233
|
+
body: TrashConflictCopyRequest,
|
|
234
|
+
) -> CardMetadataResponse | ErrorResponse | None:
|
|
235
|
+
"""Move a reviewed conflict copy to Trash after choosing a result.
|
|
236
|
+
|
|
237
|
+
Holder verifies the cleanup token against both live cards and the reviewed effects.
|
|
238
|
+
A stale token, cleanup that would move the original, or a detail to carry over that the review
|
|
239
|
+
did not list is Conflict. A missing association or a card missing or in Trash is NotFound.
|
|
240
|
+
Holder first carries the chosen details over to the original: links, milestones and tags are
|
|
241
|
+
added to it, chosen children move under it, and chosen card links to the copy point at it
|
|
242
|
+
instead. Each is its own change. The original is otherwise untouched. The copy can be restored,
|
|
243
|
+
and its other live children move up a level.
|
|
244
|
+
|
|
245
|
+
Args:
|
|
246
|
+
project_id (str):
|
|
247
|
+
copy_id (str):
|
|
248
|
+
body (TrashConflictCopyRequest): Confirmation of the cleanup effects returned when the
|
|
249
|
+
resolution was saved, and which of the copy's own
|
|
250
|
+
details to carry over to the original first. Everything named must be in the reviewed
|
|
251
|
+
cleanup; anything not
|
|
252
|
+
carried over stays with the copy in Trash.
|
|
253
|
+
|
|
254
|
+
Raises:
|
|
255
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
256
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
257
|
+
|
|
258
|
+
Returns:
|
|
259
|
+
CardMetadataResponse | ErrorResponse
|
|
260
|
+
"""
|
|
261
|
+
|
|
262
|
+
return (
|
|
263
|
+
await asyncio_detailed(
|
|
264
|
+
project_id=project_id,
|
|
265
|
+
copy_id=copy_id,
|
|
266
|
+
client=client,
|
|
267
|
+
body=body,
|
|
268
|
+
)
|
|
269
|
+
).parsed
|
|
@@ -125,6 +125,7 @@ from .card_reference_resolve_data_status import CardReferenceResolveDataStatus
|
|
|
125
125
|
from .card_reference_resolve_request import CardReferenceResolveRequest
|
|
126
126
|
from .card_reference_resolve_request_scope import CardReferenceResolveRequestScope
|
|
127
127
|
from .card_response import CardResponse
|
|
128
|
+
from .card_summary import CardSummary
|
|
128
129
|
from .card_update import CardUpdate
|
|
129
130
|
from .caste_info import CasteInfo
|
|
130
131
|
from .caste_info_name import CasteInfoName
|
|
@@ -132,6 +133,20 @@ from .caste_recommended_model import CasteRecommendedModel
|
|
|
132
133
|
from .caste_recommended_model_required_caste import CasteRecommendedModelRequiredCaste
|
|
133
134
|
from .change_event_data import ChangeEventData
|
|
134
135
|
from .change_event_data_entity import ChangeEventDataEntity
|
|
136
|
+
from .conflict_changed_line import ConflictChangedLine
|
|
137
|
+
from .conflict_comparison import ConflictComparison
|
|
138
|
+
from .conflict_comparison_response import ConflictComparisonResponse
|
|
139
|
+
from .conflict_copy import ConflictCopy
|
|
140
|
+
from .conflict_copy_backlink_source import ConflictCopyBacklinkSource
|
|
141
|
+
from .conflict_copy_child_choice import ConflictCopyChildChoice
|
|
142
|
+
from .conflict_copy_cleanup_review import ConflictCopyCleanupReview
|
|
143
|
+
from .conflict_copy_link_target import ConflictCopyLinkTarget
|
|
144
|
+
from .conflict_copy_milestone_choice import ConflictCopyMilestoneChoice
|
|
145
|
+
from .conflict_copy_tag_choice import ConflictCopyTagChoice
|
|
146
|
+
from .conflict_resolution import ConflictResolution
|
|
147
|
+
from .conflict_resolution_result import ConflictResolutionResult
|
|
148
|
+
from .conflict_resolution_result_response import ConflictResolutionResultResponse
|
|
149
|
+
from .conflict_version_edited_on import ConflictVersionEditedOn
|
|
135
150
|
from .delete_projects_project_id_cards_card_id_children import (
|
|
136
151
|
DeleteProjectsProjectIdCardsCardIdChildren,
|
|
137
152
|
)
|
|
@@ -177,6 +192,7 @@ from .history_affected_object import HistoryAffectedObject
|
|
|
177
192
|
from .history_affected_path import HistoryAffectedPath
|
|
178
193
|
from .history_author import HistoryAuthor
|
|
179
194
|
from .history_object_kind import HistoryObjectKind
|
|
195
|
+
from .last_pull_changes import LastPullChanges
|
|
180
196
|
from .link import Link
|
|
181
197
|
from .link_kind_labels import LinkKindLabels
|
|
182
198
|
from .link_kind_labels_list_response import LinkKindLabelsListResponse
|
|
@@ -204,6 +220,7 @@ from .new_card import NewCard
|
|
|
204
220
|
from .new_link import NewLink
|
|
205
221
|
from .new_milestone import NewMilestone
|
|
206
222
|
from .new_project import NewProject
|
|
223
|
+
from .new_project_id_scheme import NewProjectIdScheme
|
|
207
224
|
from .new_resource import NewResource
|
|
208
225
|
from .new_storage_location import NewStorageLocation
|
|
209
226
|
from .post_ai_runner_pull_request import PostAiRunnerPullRequest
|
|
@@ -229,6 +246,7 @@ from .project_response import ProjectResponse
|
|
|
229
246
|
from .project_storage_location import ProjectStorageLocation
|
|
230
247
|
from .project_storage_location_response import ProjectStorageLocationResponse
|
|
231
248
|
from .project_update import ProjectUpdate
|
|
249
|
+
from .pull_changes import PullChanges
|
|
232
250
|
from .pull_phase import PullPhase
|
|
233
251
|
from .pull_phase_status import PullPhaseStatus
|
|
234
252
|
from .push_options import PushOptions
|
|
@@ -269,6 +287,7 @@ from .search_card import SearchCard
|
|
|
269
287
|
from .search_card_list_response import SearchCardListResponse
|
|
270
288
|
from .search_message import SearchMessage
|
|
271
289
|
from .search_message_list_response import SearchMessageListResponse
|
|
290
|
+
from .separate_conflict_copy_request import SeparateConflictCopyRequest
|
|
272
291
|
from .storage_location_list_response import StorageLocationListResponse
|
|
273
292
|
from .storage_location_update import StorageLocationUpdate
|
|
274
293
|
from .sync_result import SyncResult
|
|
@@ -279,6 +298,7 @@ from .sync_state_response import SyncStateResponse
|
|
|
279
298
|
from .tag_count import TagCount
|
|
280
299
|
from .tag_count_list_response import TagCountListResponse
|
|
281
300
|
from .tag_occurrence import TagOccurrence
|
|
301
|
+
from .trash_conflict_copy_request import TrashConflictCopyRequest
|
|
282
302
|
from .trash_delete_result import TrashDeleteResult
|
|
283
303
|
from .trash_delete_result_response import TrashDeleteResultResponse
|
|
284
304
|
from .trash_empty_result import TrashEmptyResult
|
|
@@ -410,6 +430,7 @@ __all__ = (
|
|
|
410
430
|
"CardReferenceResolveRequest",
|
|
411
431
|
"CardReferenceResolveRequestScope",
|
|
412
432
|
"CardResponse",
|
|
433
|
+
"CardSummary",
|
|
413
434
|
"CardUpdate",
|
|
414
435
|
"CasteInfo",
|
|
415
436
|
"CasteInfoName",
|
|
@@ -417,6 +438,20 @@ __all__ = (
|
|
|
417
438
|
"CasteRecommendedModelRequiredCaste",
|
|
418
439
|
"ChangeEventData",
|
|
419
440
|
"ChangeEventDataEntity",
|
|
441
|
+
"ConflictChangedLine",
|
|
442
|
+
"ConflictComparison",
|
|
443
|
+
"ConflictComparisonResponse",
|
|
444
|
+
"ConflictCopy",
|
|
445
|
+
"ConflictCopyBacklinkSource",
|
|
446
|
+
"ConflictCopyChildChoice",
|
|
447
|
+
"ConflictCopyCleanupReview",
|
|
448
|
+
"ConflictCopyLinkTarget",
|
|
449
|
+
"ConflictCopyMilestoneChoice",
|
|
450
|
+
"ConflictCopyTagChoice",
|
|
451
|
+
"ConflictResolution",
|
|
452
|
+
"ConflictResolutionResult",
|
|
453
|
+
"ConflictResolutionResultResponse",
|
|
454
|
+
"ConflictVersionEditedOn",
|
|
420
455
|
"DeleteProjectsProjectIdCardsCardIdChildren",
|
|
421
456
|
"DueSyncResult",
|
|
422
457
|
"DueSyncResultResponse",
|
|
@@ -452,6 +487,7 @@ __all__ = (
|
|
|
452
487
|
"HistoryAffectedPath",
|
|
453
488
|
"HistoryAuthor",
|
|
454
489
|
"HistoryObjectKind",
|
|
490
|
+
"LastPullChanges",
|
|
455
491
|
"Link",
|
|
456
492
|
"LinkKindLabels",
|
|
457
493
|
"LinkKindLabelsListResponse",
|
|
@@ -479,6 +515,7 @@ __all__ = (
|
|
|
479
515
|
"NewLink",
|
|
480
516
|
"NewMilestone",
|
|
481
517
|
"NewProject",
|
|
518
|
+
"NewProjectIdScheme",
|
|
482
519
|
"NewResource",
|
|
483
520
|
"NewStorageLocation",
|
|
484
521
|
"PostAiRunnerPullRequest",
|
|
@@ -500,6 +537,7 @@ __all__ = (
|
|
|
500
537
|
"ProjectStorageLocation",
|
|
501
538
|
"ProjectStorageLocationResponse",
|
|
502
539
|
"ProjectUpdate",
|
|
540
|
+
"PullChanges",
|
|
503
541
|
"PullPhase",
|
|
504
542
|
"PullPhaseStatus",
|
|
505
543
|
"PushOptions",
|
|
@@ -536,6 +574,7 @@ __all__ = (
|
|
|
536
574
|
"SearchCardListResponse",
|
|
537
575
|
"SearchMessage",
|
|
538
576
|
"SearchMessageListResponse",
|
|
577
|
+
"SeparateConflictCopyRequest",
|
|
539
578
|
"StorageLocationListResponse",
|
|
540
579
|
"StorageLocationUpdate",
|
|
541
580
|
"SyncResult",
|
|
@@ -546,6 +585,7 @@ __all__ = (
|
|
|
546
585
|
"TagCount",
|
|
547
586
|
"TagCountListResponse",
|
|
548
587
|
"TagOccurrence",
|
|
588
|
+
"TrashConflictCopyRequest",
|
|
549
589
|
"TrashDeleteResult",
|
|
550
590
|
"TrashDeleteResultResponse",
|
|
551
591
|
"TrashEmptyResult",
|