Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
618
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 3.0.116 to 3.0.117

2

index.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc