@frontegg/rest-api 3.2.0 → 3.2.1
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.
- package/index.js +1 -1
- package/node/index.js +1 -1
- package/node/users/index.js +4 -0
- package/package.json +1 -1
- package/users/index.d.ts +2 -1
- package/users/index.js +4 -0
- package/users/interfaces.d.ts +3 -0
package/index.js
CHANGED
package/node/index.js
CHANGED
package/node/users/index.js
CHANGED
|
@@ -68,6 +68,10 @@ class UsersApi extends _BaseApiClient.BaseApiClient {
|
|
|
68
68
|
this.updateUserProfileV2 = async body => {
|
|
69
69
|
return this.put(`${_constants.urls.identity.users.v2}/me`, body);
|
|
70
70
|
};
|
|
71
|
+
|
|
72
|
+
this.unlockMe = async body => {
|
|
73
|
+
return this.post(`${_constants.urls.identity.users.v3}/me/unlock`, body);
|
|
74
|
+
};
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
}
|
package/package.json
CHANGED
package/users/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCurrentUserTenantsResponse, GetUserGroupsParams, GetUserGroupsResponse, GetUserJwtRequestDto, GetUserJwtResponseDto, GetUserRolesResponse, GetUsersRolesParams, IGetUsersV2Response, ISearchUserQueryParamsV2, ISearchUserQueryParamsV3, IUpdateUserDto, IUserProfile, IUsersV3Data } from './interfaces';
|
|
1
|
+
import { GetCurrentUserTenantsResponse, GetUserGroupsParams, GetUserGroupsResponse, GetUserJwtRequestDto, GetUserJwtResponseDto, GetUserRolesResponse, GetUsersRolesParams, IGetUsersV2Response, ISearchUserQueryParamsV2, ISearchUserQueryParamsV3, IUnlockMeRequest, IUpdateUserDto, IUserProfile, IUsersV3Data } from './interfaces';
|
|
2
2
|
import { FronteggPaginationWrapper, UserJwtOptions } from '../interfaces';
|
|
3
3
|
import { BaseApiClient } from '../BaseApiClient';
|
|
4
4
|
export declare class UsersApi extends BaseApiClient {
|
|
@@ -18,6 +18,7 @@ export declare class UsersApi extends BaseApiClient {
|
|
|
18
18
|
getCurrentUserTenantsV1: (options?: UserJwtOptions | undefined) => Promise<GetCurrentUserTenantsResponse>;
|
|
19
19
|
sendResetBreachedPasswordEmails: () => Promise<void>;
|
|
20
20
|
updateUserProfileV2: (body: Partial<IUpdateUserDto>) => Promise<IUserProfile>;
|
|
21
|
+
unlockMe: (body: IUnlockMeRequest) => Promise<void>;
|
|
21
22
|
}
|
|
22
23
|
declare const _default: UsersApi;
|
|
23
24
|
export default _default;
|
package/users/index.js
CHANGED
|
@@ -56,6 +56,10 @@ export class UsersApi extends BaseApiClient {
|
|
|
56
56
|
this.updateUserProfileV2 = async body => {
|
|
57
57
|
return this.put(`${urls.identity.users.v2}/me`, body);
|
|
58
58
|
};
|
|
59
|
+
|
|
60
|
+
this.unlockMe = async body => {
|
|
61
|
+
return this.post(`${urls.identity.users.v3}/me/unlock`, body);
|
|
62
|
+
};
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
}
|