@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 +1 -1
- package/node/index.js +1 -1
- package/node/sub-tenants/index.js +4 -2
- package/package.json +1 -1
- package/sub-tenants/index.d.ts +1 -1
- package/sub-tenants/index.js +4 -2
package/index.js
CHANGED
package/node/index.js
CHANGED
|
@@ -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
package/sub-tenants/index.d.ts
CHANGED
|
@@ -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>;
|
package/sub-tenants/index.js
CHANGED
|
@@ -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, {
|