@frontegg/rest-api
Advanced tools
Comparing version 3.0.116 to 3.0.117
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.116 | ||
/** @license Frontegg v3.0.117 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.116 | ||
/** @license Frontegg v3.0.117 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -15,2 +17,4 @@ value: true | ||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _fetch = require("../fetch"); | ||
@@ -59,5 +63,7 @@ | ||
async function getHierarchyMetadata(params, options) { | ||
return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.metadata.v2, params, { | ||
return (0, _fetch.Get)(_constants.urls.tenants.hierarchy.metadata.v2, (0, _extends2.default)({}, params, { | ||
_tenantIds: params._tenantIds.join(',') | ||
}), { | ||
headers: (0, _fetch.extractHeadersFromOptions)(options) | ||
}); | ||
} |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -10,2 +12,4 @@ value: true | ||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _fetch = require("../fetch"); | ||
@@ -26,5 +30,7 @@ | ||
async function getUsersRoles(queryParams, options) { | ||
return (0, _fetch.Get)(_constants.urls.identity.users.roles.v3, queryParams, { | ||
return (0, _fetch.Get)(_constants.urls.identity.users.roles.v3, (0, _extends2.default)({}, queryParams, { | ||
ids: queryParams.ids.join(',') | ||
}), { | ||
headers: (0, _fetch.extractHeadersFromOptions)(options) | ||
}); | ||
} |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.0.116", | ||
"version": "3.0.117", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -0,1 +1,2 @@ | ||
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import { extractHeadersFromOptions, Get, Post, Put } from "../fetch"; | ||
@@ -35,5 +36,7 @@ import { urls } from "../constants"; | ||
export async function getHierarchyMetadata(params, options) { | ||
return Get(urls.tenants.hierarchy.metadata.v2, params, { | ||
return Get(urls.tenants.hierarchy.metadata.v2, _extends({}, params, { | ||
_tenantIds: params._tenantIds.join(',') | ||
}), { | ||
headers: extractHeadersFromOptions(options) | ||
}); | ||
} |
@@ -0,1 +1,2 @@ | ||
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import { extractHeadersFromOptions, Get, Post } from "../fetch"; | ||
@@ -12,5 +13,7 @@ import { urls } from "../constants"; | ||
export async function getUsersRoles(queryParams, options) { | ||
return Get(urls.identity.users.roles.v3, queryParams, { | ||
return Get(urls.identity.users.roles.v3, _extends({}, queryParams, { | ||
ids: queryParams.ids.join(',') | ||
}), { | ||
headers: extractHeadersFromOptions(options) | ||
}); | ||
} |
@@ -30,3 +30,9 @@ import { PaginationOrderEnum } from '../interfaces'; | ||
} | ||
export interface IUsersV3Data { | ||
export interface IBaseUserData { | ||
id: string; | ||
email: string; | ||
name?: string; | ||
profilePictureUrl?: string; | ||
} | ||
export interface IUsersV3Data extends IBaseUserData { | ||
sub?: string; | ||
@@ -33,0 +39,0 @@ verified?: boolean; |
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
338240
9438