Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
3
Versions
621
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 3.1.76 to 3.1.78-alpha.9957739104

2

index.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc