Maryhipp/dummy bulk download (#4852)

* UI for bulk downloading boards or groups of images

* placeholder route for bulk downloads that does nothing

* lint

---------

Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
Mary Hipp Rogers
2023-10-11 19:27:22 -04:00
committed by GitHub
parent 40f9e49b5e
commit 69937d68d2
8 changed files with 194 additions and 36 deletions

View File

@ -1599,6 +1599,19 @@ export const imagesApi = api.injectEndpoints({
}
},
}),
bulkDownloadImages: build.mutation<
components['schemas']['ImagesDownloaded'],
components['schemas']['Body_download_images_from_list']
>({
query: ({ image_names, board_id }) => ({
url: `images/download`,
method: 'POST',
body: {
image_names,
board_id,
},
}),
}),
}),
});
@ -1623,4 +1636,5 @@ export const {
useStarImagesMutation,
useUnstarImagesMutation,
useGetImageMetadataFromFileQuery,
useBulkDownloadImagesMutation,
} = imagesApi;