Skip to content

Commit 4c83994

Browse files
committed
reapply changes
1 parent c46e805 commit 4c83994

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/FusionAuthClient.ts

+40
Original file line numberDiff line numberDiff line change
@@ -3890,6 +3890,22 @@ export class FusionAuthClient {
38903890
.go();
38913891
}
38923892

3893+
/**
3894+
* Retrieves the user for the loginId for specific loginIdTypes.
3895+
*
3896+
* @param {string} loginId The email or username of the user.
3897+
* @param {List<String>} loginIdTypes The identity types that FusionAuth will compare the loginId to.
3898+
* @returns {Promise<ClientResponse<UserResponse>>}
3899+
*/
3900+
retrieveUserByLoginId(loginId: string, loginIdTypes: List<String>): Promise<ClientResponse<UserResponse>> {
3901+
return this.start<UserResponse, Errors>()
3902+
.withUri('/api/user')
3903+
.withParameter('loginId', loginId)
3904+
.withParameter('loginIdTypes', loginIdTypes)
3905+
.withMethod("GET")
3906+
.go();
3907+
}
3908+
38933909
/**
38943910
* Retrieves the user for the given username.
38953911
*
@@ -4095,6 +4111,29 @@ export class FusionAuthClient {
40954111
.go();
40964112
}
40974113

4114+
/**
4115+
* Retrieves the login report between the two instants for a particular user by login Id. If you specify an application id, it will only return the
4116+
* login counts for that application.
4117+
*
4118+
* @param {UUID} applicationId (Optional) The application id.
4119+
* @param {string} loginId The userId id.
4120+
* @param {List<String>} loginIdTypes The identity types that FusionAuth will compare the loginId to.
4121+
* @param {number} start The start instant as UTC milliseconds since Epoch.
4122+
* @param {number} end The end instant as UTC milliseconds since Epoch.
4123+
* @returns {Promise<ClientResponse<LoginReportResponse>>}
4124+
*/
4125+
retrieveUserLoginReportByLoginId(applicationId: UUID, loginId: string, loginIdTypes: List<String>, start: number, end: number): Promise<ClientResponse<LoginReportResponse>> {
4126+
return this.start<LoginReportResponse, Errors>()
4127+
.withUri('/api/report/login')
4128+
.withParameter('applicationId', applicationId)
4129+
.withParameter('loginId', loginId)
4130+
.withParameter('loginIdTypes', loginIdTypes)
4131+
.withParameter('start', start)
4132+
.withParameter('end', end)
4133+
.withMethod("GET")
4134+
.go();
4135+
}
4136+
40984137
/**
40994138
* Retrieves the last number of login records for a user.
41004139
*
@@ -10960,6 +10999,7 @@ export interface Templates {
1096010999
oauth2Error?: string;
1096111000
oauth2Logout?: string;
1096211001
oauth2Passwordless?: string;
11002+
oauth2PasswordlessFormField?: string;
1096311003
oauth2Register?: string;
1096411004
oauth2StartIdPLink?: string;
1096511005
oauth2TwoFactor?: string;

0 commit comments

Comments
 (0)