decopled crm for new appeals - all made on storage

This commit is contained in:
2022-09-28 10:13:36 +01:00
parent bfcd0329c6
commit 745b51839a
15 changed files with 451 additions and 99 deletions
+16
View File
@@ -1,4 +1,5 @@
import jsonpath from "jsonpath";
import { v4 as uuidv4 } from "uuid";
import data from "../../data/collections.json";
import {
getBasicSearchDetails,
@@ -341,3 +342,18 @@ export const getProgressObj = (
//console.log(progObj);
return progObj;
};
export const getTempCaseRef = () => {
function randomString(length) {
return Math.random().toString(36).substr(2, length);
}
const randomGUID = uuidv4();
return (
"TMP-" +
randomString(5).toUpperCase() +
"-" +
randomString(6).toUpperCase()
);
};