@abyss-project/form 1.0.7 → 1.0.9
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GetReportBody, GetReportResponse } from '../types';
|
|
2
|
-
export declare const getReportAdmin: (
|
|
2
|
+
export declare const getReportAdmin: (body: GetReportBody) => Promise<GetReportResponse>;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getReportAdmin = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
|
-
const getReportAdmin = async (
|
|
6
|
-
return (await __1.AbyssFormCore.axios.
|
|
7
|
-
params,
|
|
8
|
-
})).data;
|
|
5
|
+
const getReportAdmin = async (body) => {
|
|
6
|
+
return (await __1.AbyssFormCore.axios.post(`report/admin/report`, body)).data;
|
|
9
7
|
};
|
|
10
8
|
exports.getReportAdmin = getReportAdmin;
|
|
@@ -3,16 +3,27 @@ export interface GetReportResponse {
|
|
|
3
3
|
metrics: {
|
|
4
4
|
totalForms: number;
|
|
5
5
|
totalSubmissions: number;
|
|
6
|
-
totalViews: number;
|
|
7
6
|
averageSubmissionsPerForm: number;
|
|
8
|
-
mostPopularForm:
|
|
9
|
-
|
|
7
|
+
mostPopularForm: {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
status: string;
|
|
14
|
+
submissionCount: number;
|
|
15
|
+
} | null;
|
|
10
16
|
submissionsByMonth: Array<{
|
|
11
17
|
month: number;
|
|
12
18
|
count: number;
|
|
13
19
|
}>;
|
|
14
20
|
topForms: Array<{
|
|
15
|
-
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
status: string;
|
|
16
27
|
submissions: number;
|
|
17
28
|
}>;
|
|
18
29
|
};
|