feat(tui): delete working copies from move dialog (#31017)

This commit is contained in:
James Long 2026-06-05 16:47:10 -04:00 committed by GitHub
commit f591bf5f93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 337 additions and 117 deletions

View file

@ -818,9 +818,9 @@ export class ProjectCopy extends HeyApiClient {
public remove<ThrowOnError extends boolean = false>(
parameters: {
projectID: string
query_directory?: string
workspace?: string
body_directory?: string
directory?: string
force?: boolean
},
options?: Options<never, ThrowOnError>,
) {
@ -830,17 +830,9 @@ export class ProjectCopy extends HeyApiClient {
{
args: [
{ in: "path", key: "projectID" },
{
in: "query",
key: "query_directory",
map: "directory",
},
{ in: "query", key: "workspace" },
{
in: "body",
key: "body_directory",
map: "directory",
},
{ in: "body", key: "directory" },
{ in: "body", key: "force" },
],
},
],

View file

@ -2484,6 +2484,7 @@ export type ProjectCopyError = {
name: "ProjectCopyError"
data: {
message: string
forceRequired?: boolean
}
}
@ -6971,12 +6972,12 @@ export type ProjectDirectoriesResponse = ProjectDirectoriesResponses[keyof Proje
export type ExperimentalProjectCopyRemoveData = {
body?: {
directory: string
force: boolean
}
path: {
projectID: string
}
query?: {
directory?: string
workspace?: string
}
url: "/experimental/project/{projectID}/copy"