Skip to content

Commit

Permalink
MINOR: Add XLSXExport (#25)
Browse files Browse the repository at this point in the history
Adding_function_XLSX
  • Loading branch information
Amoki authored Aug 31, 2023
2 parents fce1e3d + 8d346ac commit a0f4e0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ function createService(apiClient, { fetchUsers }) {
downloadBlobAs(`${project.name}.bcf`, response);
};

const exportBcfXLSX = async (project, topics) => {
const response = await apiClient.bcfApi.downloadBcfExport(
project.id,
undefined,
topics.map((t) => t.guid).join(",")
);
downloadBlobAs(`${project.name}.bcf`, response);
};

// --- BCF Topic Viewpoints API ---

const loadTopicsViewpoints = async (project, topics) => {
Expand Down Expand Up @@ -166,6 +175,7 @@ function createService(apiClient, { fetchUsers }) {
deleteTopic,
importBcf,
exportBcf,
exportBcfXLSX,
loadTopicsViewpoints,
fetchTopicViewpoints,
fetchTopicCommentViewpoint,
Expand Down

0 comments on commit a0f4e0d

Please sign in to comment.