Skip to content

Commit 80f9ff6

Browse files
author
FalkWolsky
committed
Introducing framework for EnterpriseEditionApiCalls
1 parent 0729b1f commit 80f9ff6

File tree

11 files changed

+310
-219
lines changed

11 files changed

+310
-219
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import axios from 'axios';
2+
3+
export const getEnterpriseLicense = async () => {
4+
const response = await axios.get('/api/plugins/enterprise/license');
5+
return response.data;
6+
};
7+
8+
export const getAuditLogs = async () => {
9+
const response = await axios.get('/api/plugins/enterprise/audit-logs');
10+
return response.data;
11+
};
12+
13+
export const getAuditLogStatistics = async (groupByParam: string) => {
14+
const response = await axios.get(`/api/plugins/enterprise/audit-logs/statistics?groupByParam=${groupByParam}`);
15+
return response.data;
16+
};
17+
18+
export const getAppUsageLogs = async () => {
19+
const response = await axios.get('/api/plugins/enterprise/app-usage-logs');
20+
return response.data;
21+
};
22+
23+
export const getAppUsageStatistics = async (groupByParam: string) => {
24+
const response = await axios.get(`/api/plugins/enterprise/app-usage-logs/statistics?groupByParam=${groupByParam}`);
25+
return response.data;
26+
};

client/packages/lowcoder/src/constants/reduxActionConstants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ export const ReduxActionTypes = {
169169
FETCH_SUBSCRIPTIONS_SUCCESS: "FETCH_SUBSCRIPTIONS_SUCCESS",
170170
FETCH_SUBSCRIPTIONS_FAILURE: "FETCH_SUBSCRIPTIONS_FAILURE",
171171

172+
/* Enterprise Edition */
173+
FETCH_ENTERPRISE_LICENSE : "FETCH_ENTERPRISE_LICENSE",
174+
SET_ENTERPRISE_LICENSE : "SET_ENTERPRISE_LICENSE",
175+
172176
/* application snapshot */
173177
FETCH_APP_SNAPSHOTS: "FETCH_APP_SNAPSHOTS",
174178
FETCH_APP_SNAPSHOTS_SUCCESS: "FETCH_APP_SNAPSHOTS_SUCCESS",

0 commit comments

Comments
 (0)