feat: implement organization insights dashboard with detailed metrics and collaboration data in sysadmin-cli
This commit is contained in:
@@ -5,6 +5,8 @@ import { getApiHost } from "../helpers/GetApiHost";
|
||||
import {
|
||||
PaginateCompaniesParams,
|
||||
PaginateCompaniesResults,
|
||||
OrganizationInsightsParams,
|
||||
OrganizationInsightsResult,
|
||||
SetCompanyBannedParams,
|
||||
UpdateCompanyParams,
|
||||
} from "../models/Companies.Model";
|
||||
@@ -35,3 +37,12 @@ export const setCompanyBanned = async (params: SetCompanyBannedParams): Promise<
|
||||
});
|
||||
return result.data;
|
||||
};
|
||||
|
||||
export const getOrganizationInsights = async (params: OrganizationInsightsParams): Promise<OrganizationInsightsResult> => {
|
||||
const nonce = await getSysAdminNonce();
|
||||
const result = await axios.post(`${getApiHost()}/sysadmin/companies/insights`, {
|
||||
...params,
|
||||
payload: getPayload(nonce),
|
||||
});
|
||||
return result.data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user