@frontegg/rest-api 3.1.71 → 3.1.72

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.71
1
+ /** @license Frontegg v3.1.72
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.71
1
+ /** @license Frontegg v3.1.72
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.
@@ -74,8 +74,10 @@ async function updateSubTenant({
74
74
 
75
75
  async function updateSubTenantManagement({
76
76
  tenantId
77
- }, body) {
78
- return (0, _fetch.Put)(`${_constants.urls.tenants.subTenants.v1}/${tenantId}/management`, body);
77
+ }, body, options) {
78
+ return (0, _fetch.Put)(`${_constants.urls.tenants.subTenants.v1}/${tenantId}/management`, body, {
79
+ headers: (0, _fetch.extractHeadersFromOptions)(options)
80
+ });
79
81
  }
80
82
 
81
83
  async function updateSubAccountAccess(userId, body, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.1.71",
3
+ "version": "3.1.72",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -9,6 +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
+ export declare function updateSubTenantManagement({ tenantId }: UpdateSubTenantRequestParams, body: UpdateSubTenantManagementRequest, options?: UserJwtOptions): Promise<CreateSubTenantResponse>;
13
13
  export declare function updateSubAccountAccess(userId: string, body: UpdateSubAccountAccessRequestDto, options?: UserJwtOptions): Promise<void>;
14
14
  export declare function addUsersToSubTenant(body: AddUsersToSubTenantRequest, options?: UserJwtOptions): Promise<void>;
@@ -45,8 +45,10 @@ export async function updateSubTenant({
45
45
  }
46
46
  export async function updateSubTenantManagement({
47
47
  tenantId
48
- }, body) {
49
- return Put(`${urls.tenants.subTenants.v1}/${tenantId}/management`, body);
48
+ }, body, options) {
49
+ return Put(`${urls.tenants.subTenants.v1}/${tenantId}/management`, body, {
50
+ headers: extractHeadersFromOptions(options)
51
+ });
50
52
  }
51
53
  export async function updateSubAccountAccess(userId, body, options) {
52
54
  return Put(`${urls.identity.subTenants.v1}/${userId}/access`, body, {