@frontegg/rest-api
Advanced tools
Comparing version 3.1.76 to 3.1.78-alpha.9957739104
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.76 | ||
/** @license Frontegg v3.1.78-alpha.9957739104 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.1.76 | ||
/** @license Frontegg v3.1.78-alpha.9957739104 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -13,2 +13,4 @@ "use strict"; | ||
exports.deleteUser = deleteUser; | ||
exports.disableUser = disableUser; | ||
exports.enableUser = enableUser; | ||
exports.getInviteLinkConfiguration = getInviteLinkConfiguration; | ||
@@ -151,2 +153,10 @@ exports.getInviteUserLink = getInviteUserLink; | ||
return (0, _fetch.Post)(_constants.urls.identity.users.invitation.resendAll.v1, (0, _extends2.default)({}, body)); | ||
} | ||
async function disableUser(userId) { | ||
return (0, _fetch.Post)(`${_constants.urls.identity.tenants.users.v1}/${userId}/disable`); | ||
} | ||
async function enableUser(userId) { | ||
return (0, _fetch.Post)(`${_constants.urls.identity.tenants.users.v1}/${userId}/enable`); | ||
} |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.1.76", | ||
"version": "3.1.78-alpha.9957739104", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -134,1 +134,9 @@ import { IAddUser, IChangePassword, ILoadUsers, IResendActivationLink, ITeamUserRole, ITeamStats, ITeamUser, IUpdateProfile, IUpdateUser, IDeleteUser, ITeamUserPermission, IResendInvitationLink, IInviteUserLinkResponse, ICreateOrUpdateInviteUserLink, IInviteLinkConfiguration, IUpdateUserExpiration, ITemporaryUserConfiguration } from './interfaces'; | ||
export declare function resendInvitationLinkToAllTenants(body: IResendInvitationLink): Promise<void>; | ||
/** | ||
* Disable specific user | ||
*/ | ||
export declare function disableUser(userId: string): Promise<void>; | ||
/** | ||
* Enable specific user | ||
*/ | ||
export declare function enableUser(userId: string): Promise<void>; |
@@ -96,2 +96,8 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
return Post(urls.identity.users.invitation.resendAll.v1, _extends({}, body)); | ||
} | ||
export async function disableUser(userId) { | ||
return Post(`${urls.identity.tenants.users.v1}/${userId}/disable`); | ||
} | ||
export async function enableUser(userId) { | ||
return Post(`${urls.identity.tenants.users.v1}/${userId}/enable`); | ||
} |
@@ -31,2 +31,3 @@ import { QueryFilter, QuerySort } from "../interfaces"; | ||
temporaryExpirationDate?: Date; | ||
isDisabled?: boolean; | ||
}; | ||
@@ -33,0 +34,0 @@ export declare type ITeamUserRole = { |
@@ -79,2 +79,3 @@ import { PaginationOrderEnum } from '../interfaces'; | ||
temporaryExpirationDate?: Date; | ||
isDisabled?: boolean; | ||
entitlements?: UserEntitlementsResponseV2; | ||
@@ -81,0 +82,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
425757
11598
2