@excali-boards/boards-api-client 1.1.46 → 1.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,12 +3,16 @@ import { WithHeaders } from '../types';
|
|
|
3
3
|
export declare class APIAnalytics {
|
|
4
4
|
private web;
|
|
5
5
|
constructor(web: BoardsManager);
|
|
6
|
+
getGlobalAnalytics({ auth, ...rest }: AnalyticsFunctionsInput['getGlobalAnalytics']): Promise<import("../types").WebResponse<UserBoardActivityWithUser[]>>;
|
|
6
7
|
getUserAnalytics({ auth, ...rest }: AnalyticsFunctionsInput['getUserAnalytics']): Promise<import("../types").WebResponse<UserBoardActivityWithBoard[]>>;
|
|
7
8
|
getBoardAnalytics({ auth, boardId, categoryId, groupId, ...rest }: AnalyticsFunctionsInput['getBoardAnalytics']): Promise<import("../types").WebResponse<UserBoardActivityWithUser[]>>;
|
|
8
9
|
getCategoryAnalytics({ auth, categoryId, groupId, ...rest }: AnalyticsFunctionsInput['getCategoryAnalytics']): Promise<import("../types").WebResponse<UserBoardActivityWithUser[]>>;
|
|
9
10
|
getGroupAnalytics({ auth, groupId, ...rest }: AnalyticsFunctionsInput['getGroupAnalytics']): Promise<import("../types").WebResponse<UserBoardActivityWithUser[]>>;
|
|
10
11
|
}
|
|
11
12
|
export type AnalyticsFunctionsInput = WithHeaders<{
|
|
13
|
+
'getGlobalAnalytics': {
|
|
14
|
+
auth: string;
|
|
15
|
+
};
|
|
12
16
|
'getUserAnalytics': {
|
|
13
17
|
auth: string;
|
|
14
18
|
};
|
|
@@ -8,6 +8,12 @@ class APIAnalytics {
|
|
|
8
8
|
this.web = web;
|
|
9
9
|
}
|
|
10
10
|
// Methods.
|
|
11
|
+
async getGlobalAnalytics({ auth, ...rest }) {
|
|
12
|
+
return await this.web.request({
|
|
13
|
+
method: 'GET', auth, ...rest,
|
|
14
|
+
endpoint: this.web.qp('/analytics'),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
11
17
|
async getUserAnalytics({ auth, ...rest }) {
|
|
12
18
|
return await this.web.request({
|
|
13
19
|
method: 'GET', auth, ...rest,
|
|
@@ -16,7 +16,8 @@ export type MetricsFunctionsInput = WithHeaders<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export type SystemStatus = {
|
|
18
18
|
cpuUsage: number;
|
|
19
|
-
|
|
19
|
+
memoryUsageMb: number;
|
|
20
|
+
uptimeSeconds: number;
|
|
20
21
|
activeRooms: number;
|
|
21
22
|
socketConnections: number;
|
|
22
23
|
queuedFiles: number;
|
|
@@ -25,4 +26,6 @@ export type SystemStatus = {
|
|
|
25
26
|
totalBoards: number;
|
|
26
27
|
totalCategories: number;
|
|
27
28
|
totalGroups: number;
|
|
29
|
+
totalFiles: number;
|
|
30
|
+
storageSizeMb: number;
|
|
28
31
|
};
|
package/package.json
CHANGED