@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 CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.76
1
+ /** @license Frontegg v3.1.78
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.76
1
+ /** @license Frontegg v3.1.78
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.1.76",
3
+ "version": "3.1.78",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
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
  }
@@ -28,6 +28,7 @@ export declare type ITeamUser = {
28
28
  verified?: boolean;
29
29
  managedBy?: UserManagedByEnum;
30
30
  temporaryExpirationDate?: Date;
31
+ isDisabled?: boolean;
31
32
  };
32
33
  export declare type ITeamUserRole = {
33
34
  vendorId?: string;
@@ -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;