@frontegg/rest-api 3.1.76 → 3.1.78
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/teams/index.js +10 -0
- package/package.json +1 -1
- package/teams/index.d.ts +8 -0
- package/teams/index.js +6 -0
- package/teams/interfaces.d.ts +1 -0
- package/users/interfaces.d.ts +1 -0
package/index.js
CHANGED
package/node/index.js
CHANGED
package/node/teams/index.js
CHANGED
|
@@ -10,6 +10,8 @@ exports.changePassword = changePassword;
|
|
|
10
10
|
exports.createInviteUserLink = createInviteUserLink;
|
|
11
11
|
exports.deleteInviteUserLink = deleteInviteUserLink;
|
|
12
12
|
exports.deleteUser = deleteUser;
|
|
13
|
+
exports.disableUser = disableUser;
|
|
14
|
+
exports.enableUser = enableUser;
|
|
13
15
|
exports.getInviteLinkConfiguration = getInviteLinkConfiguration;
|
|
14
16
|
exports.getInviteUserLink = getInviteUserLink;
|
|
15
17
|
exports.getProfile = getProfile;
|
|
@@ -147,4 +149,12 @@ async function resendInvitationLink(body) {
|
|
|
147
149
|
|
|
148
150
|
async function resendInvitationLinkToAllTenants(body) {
|
|
149
151
|
return (0, _fetch.Post)(_constants.urls.identity.users.invitation.resendAll.v1, (0, _extends2.default)({}, body));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
async function disableUser(userId) {
|
|
155
|
+
return (0, _fetch.Post)(`${_constants.urls.identity.tenants.users.v1}/${userId}/disable`);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
async function enableUser(userId) {
|
|
159
|
+
return (0, _fetch.Post)(`${_constants.urls.identity.tenants.users.v1}/${userId}/enable`);
|
|
150
160
|
}
|
package/package.json
CHANGED
package/teams/index.d.ts
CHANGED
|
@@ -131,3 +131,11 @@ export declare function resendInvitationLink(body: IResendInvitationLink): Promi
|
|
|
131
131
|
* ``authorized user``
|
|
132
132
|
*/
|
|
133
133
|
export declare function resendInvitationLinkToAllTenants(body: IResendInvitationLink): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Disable specific user
|
|
136
|
+
*/
|
|
137
|
+
export declare function disableUser(userId: string): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Enable specific user
|
|
140
|
+
*/
|
|
141
|
+
export declare function enableUser(userId: string): Promise<void>;
|
package/teams/index.js
CHANGED
|
@@ -93,4 +93,10 @@ export async function resendInvitationLink(body) {
|
|
|
93
93
|
}
|
|
94
94
|
export async function resendInvitationLinkToAllTenants(body) {
|
|
95
95
|
return Post(urls.identity.users.invitation.resendAll.v1, _extends({}, body));
|
|
96
|
+
}
|
|
97
|
+
export async function disableUser(userId) {
|
|
98
|
+
return Post(`${urls.identity.tenants.users.v1}/${userId}/disable`);
|
|
99
|
+
}
|
|
100
|
+
export async function enableUser(userId) {
|
|
101
|
+
return Post(`${urls.identity.tenants.users.v1}/${userId}/enable`);
|
|
96
102
|
}
|
package/teams/interfaces.d.ts
CHANGED
package/users/interfaces.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export interface IBaseGetUserResponse extends IBaseUserData {
|
|
|
76
76
|
lastLogin?: Date;
|
|
77
77
|
subAccountAccessAllowed?: boolean;
|
|
78
78
|
temporaryExpirationDate?: Date;
|
|
79
|
+
isDisabled?: boolean;
|
|
79
80
|
entitlements?: UserEntitlementsResponseV2;
|
|
80
81
|
}
|
|
81
82
|
export declare type IUserProfile = IGetUsersV2Response;
|