Skip to content

Commit f962794

Browse files
authored
add retrieveTotalReportWithExcludes() to fusionauth client (#209)
1 parent e046dff commit f962794

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/FusionAuthClient.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3804,6 +3804,20 @@ export class FusionAuthClient {
38043804
.go();
38053805
}
38063806

3807+
/**
3808+
* Retrieves the totals report. This allows excluding applicationTotals from the report. An empty list will include the applicationTotals.
3809+
*
3810+
* @param {Array<String>} excludes List of fields to exclude in the response. Currently only allows applicationTotals.
3811+
* @returns {Promise<ClientResponse<TotalsReportResponse>>}
3812+
*/
3813+
retrieveTotalReportWithExcludes(excludes: Array<String>): Promise<ClientResponse<TotalsReportResponse>> {
3814+
return this.start<TotalsReportResponse, void>()
3815+
.withUri('/api/report/totals')
3816+
.withParameter('excludes', excludes)
3817+
.withMethod("GET")
3818+
.go();
3819+
}
3820+
38073821
/**
38083822
* Retrieve two-factor recovery codes for a user.
38093823
*

0 commit comments

Comments
 (0)