Add backup flags to backup import

This commit is contained in:
schroda
2025-10-04 21:48:44 +02:00
parent faa53b049f
commit f0c6e789cd
8 changed files with 41 additions and 26 deletions

View File

@@ -219,6 +219,7 @@ import {
CreateBackupInput,
CreateBackupMutation,
CreateBackupMutationVariables,
RestoreBackupInput,
} from '@/lib/graphql/generated/graphql.ts';
import { GET_GLOBAL_METADATAS } from '@/lib/graphql/queries/GlobalMetadataQuery.ts';
import { DELETE_GLOBAL_METADATA, SET_GLOBAL_METADATA } from '@/lib/graphql/mutations/GlobalMetadataMutation.ts';
@@ -2720,13 +2721,13 @@ export class RequestManager {
}
public restoreBackupFile(
file: File,
input: RestoreBackupInput,
options?: MutationOptions<RestoreBackupMutation, RestoreBackupMutationVariables>,
): AbortableApolloMutationResponse<RestoreBackupMutation> {
return this.doRequest<RestoreBackupMutation, RestoreBackupMutationVariables>(
GQLMethod.MUTATION,
RESTORE_BACKUP,
{ backup: file },
input,
{
...options,
},
@@ -2747,10 +2748,6 @@ export class RequestManager {
return this.doRequest(GQLMethod.USE_QUERY, GET_RESTORE_STATUS, { id }, options);
}
public getExportBackupUrl(): string {
return this.getValidUrlFor('backup/export/file');
}
public startDownloads(
options?: MutationOptions<StartDownloaderMutation, StartDownloaderMutationVariables>,
): AbortableApolloMutationResponse<StartDownloaderMutation> {