@frontegg/rest-api
Advanced tools
Comparing version 3.0.117 to 3.0.118
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.117 | ||
/** @license Frontegg v3.0.118 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.117 | ||
/** @license Frontegg v3.0.118 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -10,2 +10,3 @@ "use strict"; | ||
exports.getParentTenants = getParentTenants; | ||
exports.getParentTenantsById = getParentTenantsById; | ||
exports.getSubTenants = getSubTenants; | ||
@@ -50,2 +51,8 @@ exports.getSubTenantsAsTree = getSubTenantsAsTree; | ||
async function getParentTenantsById(tenantId, options) { | ||
return (0, _fetch.Get)(`${_constants.urls.tenants.hierarchy.parents.v1}/${tenantId}`, undefined, { | ||
headers: (0, _fetch.extractHeadersFromOptions)(options) | ||
}); | ||
} | ||
async function getTenantsUsersCount(body, options) { | ||
@@ -52,0 +59,0 @@ return (0, _fetch.Post)(`${_constants.urls.identity.tenants.users.v1}/count`, body, { |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.0.117", | ||
"version": "3.0.118", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -34,4 +34,5 @@ import { GetHierarchyMetadataParams, GetHierarchyMetadataResponse, IGetTenantsUserCountRequest, IGetTenantsUserCountResponse, IParentTenant, ISubTenant, ISubTenantTree, ISwitchTenant, ITenantsResponse, SearchSubTenantsParams, SearchSubTenantsResponse } from "./interfaces"; | ||
export declare function getParentTenants(options?: UserJwtOptions): Promise<IParentTenant[]>; | ||
export declare function getParentTenantsById(tenantId: string, options?: UserJwtOptions): Promise<IParentTenant[]>; | ||
export declare function getTenantsUsersCount(body: IGetTenantsUserCountRequest, options?: UserJwtOptions): Promise<IGetTenantsUserCountResponse[]>; | ||
export declare function searchSubTenants(params: SearchSubTenantsParams, options?: UserJwtOptions): Promise<FronteggPaginationWrapper<SearchSubTenantsResponse>>; | ||
export declare function getHierarchyMetadata(params: GetHierarchyMetadataParams, options?: UserJwtOptions): Promise<GetHierarchyMetadataResponse[]>; |
@@ -25,2 +25,7 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
} | ||
export async function getParentTenantsById(tenantId, options) { | ||
return Get(`${urls.tenants.hierarchy.parents.v1}/${tenantId}`, undefined, { | ||
headers: extractHeadersFromOptions(options) | ||
}); | ||
} | ||
export async function getTenantsUsersCount(body, options) { | ||
@@ -27,0 +32,0 @@ return Post(`${urls.identity.tenants.users.v1}/count`, body, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
338834
9450