@excali-boards/boards-api-client 1.1.43 → 1.1.45
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.
|
@@ -4,8 +4,8 @@ export declare class APIAnalytics {
|
|
|
4
4
|
constructor(web: BoardsManager);
|
|
5
5
|
getUserAnalytics({ auth }: AnalyticsFunctionsInput['getUserAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithBoard[]>>;
|
|
6
6
|
getBoardAnalytics({ auth, boardId, categoryId, groupId }: AnalyticsFunctionsInput['getBoardAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
7
|
-
getCategoryAnalytics({ auth, categoryId, groupId }: AnalyticsFunctionsInput['getCategoryAnalytics']): Promise<import("..").WebResponse<
|
|
8
|
-
getGroupAnalytics({ auth, groupId }: AnalyticsFunctionsInput['getGroupAnalytics']): Promise<import("..").WebResponse<
|
|
7
|
+
getCategoryAnalytics({ auth, categoryId, groupId }: AnalyticsFunctionsInput['getCategoryAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
8
|
+
getGroupAnalytics({ auth, groupId }: AnalyticsFunctionsInput['getGroupAnalytics']): Promise<import("..").WebResponse<UserBoardActivityWithUser[]>>;
|
|
9
9
|
}
|
|
10
10
|
export type AnalyticsFunctionsInput = {
|
|
11
11
|
'getUserAnalytics': {
|
|
@@ -30,31 +30,28 @@ export type AnalyticsFunctionsInput = {
|
|
|
30
30
|
export type ActivityAnalytics = {
|
|
31
31
|
totalSessions: number;
|
|
32
32
|
totalActiveSeconds: number;
|
|
33
|
-
totalActions: number;
|
|
34
33
|
lastActivityAt: Date;
|
|
35
34
|
};
|
|
36
|
-
export type
|
|
37
|
-
|
|
35
|
+
export type BoardData = {
|
|
36
|
+
name: string;
|
|
37
|
+
boardId: string;
|
|
38
|
+
category: {
|
|
39
|
+
categoryId: string;
|
|
38
40
|
name: string;
|
|
39
|
-
|
|
41
|
+
group: {
|
|
42
|
+
groupId: string;
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
40
45
|
};
|
|
41
46
|
};
|
|
42
|
-
export type
|
|
43
|
-
|
|
44
|
-
userId: string;
|
|
45
|
-
displayName: string;
|
|
46
|
-
avatarUrl: string | null;
|
|
47
|
-
};
|
|
47
|
+
export type UserBoardActivityWithBoard = ActivityAnalytics & {
|
|
48
|
+
board: BoardData;
|
|
48
49
|
};
|
|
49
|
-
export type
|
|
50
|
+
export type UserBoardActivityWithUser = ActivityAnalytics & {
|
|
51
|
+
board: BoardData;
|
|
50
52
|
user: {
|
|
51
53
|
userId: string;
|
|
52
54
|
displayName: string;
|
|
53
55
|
avatarUrl: string | null;
|
|
54
56
|
};
|
|
55
|
-
board: {
|
|
56
|
-
name: string;
|
|
57
|
-
boardId: string;
|
|
58
|
-
categoryId: string;
|
|
59
|
-
};
|
|
60
57
|
};
|
package/package.json
CHANGED
|
@@ -62,11 +62,9 @@ model UserBoardActivity {
|
|
|
62
62
|
boardId String
|
|
63
63
|
board Board @relation(fields: [boardId], references: [boardId], onDelete: Cascade)
|
|
64
64
|
|
|
65
|
-
totalSessions Int
|
|
66
|
-
totalActiveSeconds Int
|
|
67
|
-
|
|
68
|
-
totalActions Int @default(0)
|
|
69
|
-
lastActivityAt DateTime @default(now())
|
|
65
|
+
totalSessions Int @default(0)
|
|
66
|
+
totalActiveSeconds Int @default(0)
|
|
67
|
+
lastActivityAt DateTime @default(now())
|
|
70
68
|
|
|
71
69
|
createdAt DateTime @default(now())
|
|
72
70
|
updatedAt DateTime @updatedAt
|