updated client-frontend additions

This commit is contained in:
2025-05-06 17:48:13 +03:00
parent e0ae1ee80a
commit bc43471259
140 changed files with 4320 additions and 1117 deletions

View File

@@ -17,14 +17,14 @@ async function checkAccessTokenIsValid() {
}
async function retrievePageList() {
const response = await fetchDataWithToken(siteUrls, {}, "GET", false);
const response: any = await fetchDataWithToken(siteUrls, {}, "GET", false);
return response?.status === 200 || response?.status === 202
? response.data?.sites
: null;
}
async function retrievePagebyUrl(pageUrl: string) {
const response = await fetchDataWithToken(
async function retrieveApplicationbyUrl(pageUrl: string) {
const response: any = await fetchDataWithToken(
pageValid,
{
page_url: pageUrl,
@@ -142,7 +142,7 @@ export {
retrieveUserType,
retrieveAccessObjects,
retrieveUserSelection,
retrievePagebyUrl,
retrieveApplicationbyUrl,
retrievePageList,
// retrieveavailablePages,
};