added agent details to new appeal pdf

This commit is contained in:
2024-01-23 13:14:52 +00:00
parent 9e3454e7bf
commit 89c38fe4c9
7 changed files with 758 additions and 354 deletions
+12
View File
@@ -782,6 +782,18 @@ export const getCaseBlob = async (
return blobName;
};
export const getTempCaseBlob = async (containerName, caseReference) => {
const blobName = caseReference + "/case/" + caseReference + "_case.json";
const containerToken = await createContainerSas(containerName);
const sasUrl = `${STORAGE_PATH}/${containerName}?${containerToken}`;
const containerClient = new ContainerClient(sasUrl);
const blobClient = containerClient.getBlobClient(blobName);
const downloadedBlob = await blobClient.download(0);
const downloaded = await streamToBuffer(downloadedBlob.readableStreamBody);
return JSON.parse(downloaded.toString());
};
export const getProgressBlobs = async (containerName, caseReference) => {
const containerToken = await createContainerSas(containerName);