@frontegg/rest-api 3.1.70 → 3.1.71

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.70
1
+ /** @license Frontegg v3.1.71
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.70
1
+ /** @license Frontegg v3.1.71
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.
@@ -14,6 +14,7 @@ exports.removeUserRolesFromSubTenants = removeUserRolesFromSubTenants;
14
14
  exports.setUserRolesForSubTenants = setUserRolesForSubTenants;
15
15
  exports.updateSubAccountAccess = updateSubAccountAccess;
16
16
  exports.updateSubTenant = updateSubTenant;
17
+ exports.updateSubTenantManagement = updateSubTenantManagement;
17
18
 
18
19
  var _fetch = require("../fetch");
19
20
 
@@ -71,6 +72,12 @@ async function updateSubTenant({
71
72
  });
72
73
  }
73
74
 
75
+ async function updateSubTenantManagement({
76
+ tenantId
77
+ }, body) {
78
+ return (0, _fetch.Put)(`${_constants.urls.tenants.subTenants.v1}/${tenantId}/management`, body);
79
+ }
80
+
74
81
  async function updateSubAccountAccess(userId, body, options) {
75
82
  return (0, _fetch.Put)(`${_constants.urls.identity.subTenants.v1}/${userId}/access`, body, {
76
83
  headers: (0, _fetch.extractHeadersFromOptions)(options)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.1.70",
3
+ "version": "3.1.71",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -1,5 +1,5 @@
1
1
  import { PaginationResult, UserJwtOptions } from "../interfaces";
2
- import { AddUsersToSubTenantRequest, AddUserToSubTenantsRequest, CreateSubTenantRequest, CreateSubTenantResponse, ILoadAllUsers, ISubTenantUser, RemoveUserFromSubTenantsRequest, UpdateSubAccountAccessRequestDto, UpdateSubTenantRequest, UpdateSubTenantRequestParams, UpdateUserRolesForSubTenantsRequestDto } from "./interfaces";
2
+ import { AddUsersToSubTenantRequest, AddUserToSubTenantsRequest, CreateSubTenantRequest, CreateSubTenantResponse, ILoadAllUsers, ISubTenantUser, RemoveUserFromSubTenantsRequest, UpdateSubAccountAccessRequestDto, UpdateSubTenantManagementRequest, UpdateSubTenantRequest, UpdateSubTenantRequestParams, UpdateUserRolesForSubTenantsRequestDto } from "./interfaces";
3
3
  export declare function loadAllUsers(params: ILoadAllUsers): Promise<PaginationResult<ISubTenantUser>>;
4
4
  export declare function addUserToTenantAndSubTenants(body: AddUserToSubTenantsRequest): Promise<void>;
5
5
  export declare function removeUserFromTenantAndSubTenants(body: RemoveUserFromSubTenantsRequest, options?: UserJwtOptions): Promise<void>;
@@ -9,5 +9,6 @@ export declare function setUserRolesForSubTenants(userId: string, body: UpdateUs
9
9
  export declare function createSubTenant(body: CreateSubTenantRequest, options?: UserJwtOptions): Promise<CreateSubTenantResponse>;
10
10
  export declare function deleteSubTenant(tenantId: string, options?: UserJwtOptions): Promise<void>;
11
11
  export declare function updateSubTenant({ tenantId }: UpdateSubTenantRequestParams, body: UpdateSubTenantRequest, options?: UserJwtOptions): Promise<void>;
12
+ export declare function updateSubTenantManagement({ tenantId }: UpdateSubTenantRequestParams, body: UpdateSubTenantManagementRequest): Promise<CreateSubTenantResponse>;
12
13
  export declare function updateSubAccountAccess(userId: string, body: UpdateSubAccountAccessRequestDto, options?: UserJwtOptions): Promise<void>;
13
14
  export declare function addUsersToSubTenant(body: AddUsersToSubTenantRequest, options?: UserJwtOptions): Promise<void>;
@@ -43,6 +43,11 @@ export async function updateSubTenant({
43
43
  headers: extractHeadersFromOptions(options)
44
44
  });
45
45
  }
46
+ export async function updateSubTenantManagement({
47
+ tenantId
48
+ }, body) {
49
+ return Put(`${urls.tenants.subTenants.v1}/${tenantId}/management`, body);
50
+ }
46
51
  export async function updateSubAccountAccess(userId, body, options) {
47
52
  return Put(`${urls.identity.subTenants.v1}/${userId}/access`, body, {
48
53
  headers: extractHeadersFromOptions(options)
@@ -133,3 +133,6 @@ export interface UpdateSubTenantRequestParams {
133
133
  export interface UpdateSubTenantRequest {
134
134
  name: string;
135
135
  }
136
+ export interface UpdateSubTenantManagementRequest {
137
+ isReseller?: boolean;
138
+ }
@@ -1,4 +1,4 @@
1
- import { PaginationOrderEnum } from '../interfaces';
1
+ import { PaginationOrderEnum } from "../interfaces";
2
2
  export declare enum TenantSortByEnum {
3
3
  createdAt = "createdAt",
4
4
  name = "name",
@@ -101,6 +101,7 @@ export interface SearchSubTenantsResponse {
101
101
  name: string;
102
102
  createdAt: Date;
103
103
  metadata: SearchSubTenantMetadata;
104
+ isReseller?: boolean;
104
105
  }
105
106
  export interface GetHierarchyMetadataParams {
106
107
  _tenantIds: string[];